Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Upload 2 files
Browse files
    	
        app.py
    CHANGED
    
    | @@ -26,11 +26,11 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo: | |
| 26 | 
             
                        neg_prompt = gr.Text(label="Negative Prompt", lines=1, max_lines=8, placeholder="")
         | 
| 27 | 
             
                        with gr.Accordion("Advanced options", open=False):
         | 
| 28 | 
             
                            with gr.Row():
         | 
| 29 | 
            -
                                width = gr. | 
| 30 | 
            -
                                height = gr. | 
| 31 | 
             
                            with gr.Row():
         | 
| 32 | 
            -
                                steps = gr. | 
| 33 | 
            -
                                cfg = gr. | 
| 34 | 
             
                            seed = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1)
         | 
| 35 | 
             
                        with gr.Accordion("Recommended Prompt", open=False):
         | 
| 36 | 
             
                            recom_prompt_preset = gr.Radio(label="Set Presets", choices=get_recom_prompt_type(), value="Common")
         | 
| @@ -100,5 +100,5 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo: | |
| 100 | 
             
                recom_prompt_preset.change(set_recom_prompt_preset, [recom_prompt_preset],
         | 
| 101 | 
             
                 [positive_prefix, positive_suffix, negative_prefix, negative_suffix], queue=False, show_api=False)
         | 
| 102 |  | 
| 103 | 
            -
            demo.queue()
         | 
| 104 | 
            -
            demo.launch()
         | 
|  | |
| 26 | 
             
                        neg_prompt = gr.Text(label="Negative Prompt", lines=1, max_lines=8, placeholder="")
         | 
| 27 | 
             
                        with gr.Accordion("Advanced options", open=False):
         | 
| 28 | 
             
                            with gr.Row():
         | 
| 29 | 
            +
                                width = gr.Slider(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
         | 
| 30 | 
            +
                                height = gr.Slider(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
         | 
| 31 | 
             
                            with gr.Row():
         | 
| 32 | 
            +
                                steps = gr.Slider(label="Number of inference steps", info="If 0, the default value is used.", maximum=100, step=1, value=0)
         | 
| 33 | 
            +
                                cfg = gr.Slider(label="Guidance scale", info="If 0, the default value is used.", maximum=30.0, step=0.1, value=0)
         | 
| 34 | 
             
                            seed = gr.Slider(label="Seed", info="Randomize Seed if -1.", minimum=-1, maximum=MAX_SEED, step=1, value=-1)
         | 
| 35 | 
             
                        with gr.Accordion("Recommended Prompt", open=False):
         | 
| 36 | 
             
                            recom_prompt_preset = gr.Radio(label="Set Presets", choices=get_recom_prompt_type(), value="Common")
         | 
|  | |
| 100 | 
             
                recom_prompt_preset.change(set_recom_prompt_preset, [recom_prompt_preset],
         | 
| 101 | 
             
                 [positive_prefix, positive_suffix, negative_prefix, negative_suffix], queue=False, show_api=False)
         | 
| 102 |  | 
| 103 | 
            +
            demo.queue(default_concurrency_limit=200, max_size=200)
         | 
| 104 | 
            +
            demo.launch(max_threads=400)
         | 
    	
        model.py
    CHANGED
    
    | @@ -16,8 +16,8 @@ models = [ | |
| 16 | 
             
                'Meina/MeinaMix_V11',
         | 
| 17 | 
             
                'KBlueLeaf/Kohaku-XL-Epsilon-rev3',
         | 
| 18 | 
             
                'KBlueLeaf/Kohaku-XL-Zeta',
         | 
| 19 | 
            -
                'kayfahaarukku/UrangDiffusion-1. | 
| 20 | 
            -
                'Eugeoter/artiwaifu-diffusion- | 
| 21 | 
             
                'Raelina/Rae-Diffusion-XL-V2',
         | 
| 22 | 
             
                'Raelina/Raemu-XL-V4',
         | 
| 23 | 
             
            ]
         | 
|  | |
| 16 | 
             
                'Meina/MeinaMix_V11',
         | 
| 17 | 
             
                'KBlueLeaf/Kohaku-XL-Epsilon-rev3',
         | 
| 18 | 
             
                'KBlueLeaf/Kohaku-XL-Zeta',
         | 
| 19 | 
            +
                'kayfahaarukku/UrangDiffusion-1.3',
         | 
| 20 | 
            +
                'Eugeoter/artiwaifu-diffusion-2.0',
         | 
| 21 | 
             
                'Raelina/Rae-Diffusion-XL-V2',
         | 
| 22 | 
             
                'Raelina/Raemu-XL-V4',
         | 
| 23 | 
             
            ]
         | 
