multimodalart HF Staff commited on
Commit
8fbaa9e
·
verified ·
1 Parent(s): b3e0e63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -11
app.py CHANGED
@@ -118,17 +118,18 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
118
  with main_interface:
119
  with gr.Row():
120
  with gr.Column(scale=1):
121
- image_input_gallery = gr.Gallery(
122
- label="Upload one or more images here. Leave empty for text-to-image",
123
- file_types=["image"],
124
- height="auto"
125
- )
126
-
127
- prompt_input = gr.Textbox(
128
- label="Prompt",
129
- placeholder="Turns this photo into a masterpiece"
130
- )
131
- generate_button = gr.Button("Generate", variant="primary")
 
132
 
133
  with gr.Column(scale=1):
134
  output_image = gr.Image(label="Output", interactive=False, elem_id="output", type="filepath")
 
118
  with main_interface:
119
  with gr.Row():
120
  with gr.Column(scale=1):
121
+ with gr.Group():
122
+ image_input_gallery = gr.Gallery(
123
+ label="Upload one or more images here. Leave empty for text-to-image",
124
+ file_types=["image"],
125
+ height="auto"
126
+ )
127
+
128
+ prompt_input = gr.Textbox(
129
+ label="Prompt",
130
+ placeholder="Turns this photo into a masterpiece"
131
+ )
132
+ generate_button = gr.Button("Generate", variant="primary")
133
 
134
  with gr.Column(scale=1):
135
  output_image = gr.Image(label="Output", interactive=False, elem_id="output", type="filepath")