fix: change UI to match UX
Browse files
app.py
CHANGED
|
@@ -61,20 +61,23 @@ def generate(images, model_choice):
|
|
| 61 |
return outputs
|
| 62 |
|
| 63 |
|
| 64 |
-
with gr.Blocks() as demo:
|
| 65 |
-
gr.Markdown("# 🔥 Multi-API Image-to-Image Generator")
|
| 66 |
-
|
| 67 |
-
with gr.Row():
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
btn.click(generate, [image_input, model_choice], gallery)
|
| 80 |
|
|
|
|
| 61 |
return outputs
|
| 62 |
|
| 63 |
|
| 64 |
+
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 65 |
+
gr.Markdown("## 🔥 Multi-API Image-to-Image Generator")
|
| 66 |
+
|
| 67 |
+
with gr.Row(equal_height=True):
|
| 68 |
+
# Left Column
|
| 69 |
+
with gr.Column(scale=1):
|
| 70 |
+
image_input = gr.File(file_count="multiple", label="Upload your images")
|
| 71 |
+
model_choice = gr.Dropdown(
|
| 72 |
+
["Flux Kontext Pro", "Wan 2.5", "Qwen 3", "Nano Banana", "GPT"],
|
| 73 |
+
value="Flux Kontext Pro",
|
| 74 |
+
label="Select Model",
|
| 75 |
+
)
|
| 76 |
+
|
| 77 |
+
# Right Column
|
| 78 |
+
with gr.Column(scale=1):
|
| 79 |
+
gallery = gr.Gallery(label="Generated Results", columns=2, height=400)
|
| 80 |
+
btn = gr.Button("Generate", variant="primary", size="lg")
|
| 81 |
|
| 82 |
btn.click(generate, [image_input, model_choice], gallery)
|
| 83 |
|