Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
|
|
|
| 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")
|