Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -126,7 +126,7 @@ def create_ui(): 
     | 
|
| 126 | 
         
             
                        output_image = gr.Image(label="Generated Image")
         
     | 
| 127 | 
         | 
| 128 | 
         
             
                    # Link the button to the function
         
     | 
| 129 | 
         
            -
                    generate_button.click(fn=generate_image, inputs=prompt_input, outputs=output_image)
         
     | 
| 130 | 
         | 
| 131 | 
         
             
                return ui
         
     | 
| 132 | 
         | 
| 
         | 
|
| 126 | 
         
             
                        output_image = gr.Image(label="Generated Image")
         
     | 
| 127 | 
         | 
| 128 | 
         
             
                    # Link the button to the function
         
     | 
| 129 | 
         
            +
                    generate_button.click(fn=generate_image, inputs=[prompt_input, True], outputs=output_image)
         
     | 
| 130 | 
         | 
| 131 | 
         
             
                return ui
         
     | 
| 132 | 
         |