UrFavB0i commited on
Commit
d17404a
·
1 Parent(s): 3f15ec4

fix: change UI to match UX

Browse files
Files changed (1) hide show
  1. app.py +17 -14
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
- model_choice = gr.Dropdown(
69
- ["Flux Kontext Pro", "Wan 2.5", "Qwen 3", "Nano Banana", "GPT"],
70
- value="Flux Kontext Pro",
71
- label="Select Model",
72
- interactive=True,
73
- )
74
- btn = gr.Button("Generate", variant="primary")
75
-
76
- image_input = gr.File(file_count="multiple", label="Upload your images")
77
- gallery = gr.Gallery(label="Generated Results", columns=2)
 
 
 
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