Commit 
							
							·
						
						080f603
	
1
								Parent(s):
							
							fbdf08c
								
Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -110,10 +110,10 @@ with gr.Blocks(css=css) as demo: 
     | 
|
| 110 | 
         
             
                    gallery = gr.Gallery(label="Generated images", height=800)
         
     | 
| 111 | 
         
             
                    ex = gr.Examples(examples=examples, inputs=[prompt, negative_prompt])
         
     | 
| 112 | 
         
             
                submit_btn.click(generate, [prompt, negative_prompt, samp_steps, guide_scale, batch_size, seed, height, width], [gallery], queue=True)
         
     | 
| 113 | 
         
            -
                height. 
     | 
| 114 | 
         
            -
                height. 
     | 
| 115 | 
         
            -
                width. 
     | 
| 116 | 
         
            -
                width. 
     | 
| 117 | 
         | 
| 118 | 
         | 
| 119 | 
         
             
            pipe = set_base_model(model_id)
         
     | 
| 
         | 
|
| 110 | 
         
             
                    gallery = gr.Gallery(label="Generated images", height=800)
         
     | 
| 111 | 
         
             
                    ex = gr.Examples(examples=examples, inputs=[prompt, negative_prompt])
         
     | 
| 112 | 
         
             
                submit_btn.click(generate, [prompt, negative_prompt, samp_steps, guide_scale, batch_size, seed, height, width], [gallery], queue=True)
         
     | 
| 113 | 
         
            +
                height.release(update_pixel_ratio, [height, width], [pixels], queue=False)
         
     | 
| 114 | 
         
            +
                height.input(round_to_8, [height], [height], queue=False)
         
     | 
| 115 | 
         
            +
                width.release(update_pixel_ratio, [height, width], [pixels], queue=False)
         
     | 
| 116 | 
         
            +
                width.input(round_to_8, [width], [width], queue=False)
         
     | 
| 117 | 
         | 
| 118 | 
         | 
| 119 | 
         
             
            pipe = set_base_model(model_id)
         
     |