Spaces:
				
			
			
	
			
			
		Running
		
			on 
			
			Zero
	
	
	
			
			
	
	
	
	
		
		
		Running
		
			on 
			
			Zero
	Commit 
							
							·
						
						2dbd667
	
1
								Parent(s):
							
							e814de0
								
generate prompt to up
Browse files- ui_components.py +3 -1
    	
        ui_components.py
    CHANGED
    
    | @@ -78,9 +78,11 @@ def create_interface(): | |
| 78 | 
             
                                            category_components[field] = gr.Dropdown(options, label=field.capitalize(), value="None")
         | 
| 79 | 
             
                                        next_components[category] = category_components
         | 
| 80 |  | 
| 81 | 
            -
                             | 
| 82 |  | 
| 83 | 
             
                        with gr.Column(scale=2):
         | 
|  | |
|  | |
| 84 | 
             
                            with gr.Accordion("Image and Caption", open=False):
         | 
| 85 | 
             
                                input_image = gr.Image(label="Input Image (optional)")
         | 
| 86 | 
             
                                caption_output = gr.Textbox(label="Generated Caption", lines=3)
         | 
|  | |
| 78 | 
             
                                            category_components[field] = gr.Dropdown(options, label=field.capitalize(), value="None")
         | 
| 79 | 
             
                                        next_components[category] = category_components
         | 
| 80 |  | 
| 81 | 
            +
                            
         | 
| 82 |  | 
| 83 | 
             
                        with gr.Column(scale=2):
         | 
| 84 | 
            +
                            generate_button = gr.Button("Generate Prompt")
         | 
| 85 | 
            +
             | 
| 86 | 
             
                            with gr.Accordion("Image and Caption", open=False):
         | 
| 87 | 
             
                                input_image = gr.Image(label="Input Image (optional)")
         | 
| 88 | 
             
                                caption_output = gr.Textbox(label="Generated Caption", lines=3)
         |