Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -271,9 +271,9 @@ with gr.Blocks() as demo:
|
|
| 271 |
with gr.Tabs(selected=0):
|
| 272 |
# Image Edit Tab (Responsive Layout: Row on Desktop, Column on Mobile)
|
| 273 |
with gr.TabItem("Edit Image", id=0):
|
| 274 |
-
with gr.Row(): # <--
|
| 275 |
# Left Column (Inputs)
|
| 276 |
-
with gr.Column(scale=1, variant="panel"):
|
| 277 |
gr.Markdown("### 🖼️ Input Image & Controls")
|
| 278 |
input_image = gr.Image(
|
| 279 |
label="Upload Image",
|
|
@@ -302,7 +302,7 @@ with gr.Blocks() as demo:
|
|
| 302 |
edit_btn = gr.Button("Edit Image", variant="primary", size="lg", elem_classes=["primary-btn"])
|
| 303 |
|
| 304 |
# Right Column (Output)
|
| 305 |
-
with gr.Column(scale=1, variant="panel"):
|
| 306 |
gr.Markdown("### ✨ Result")
|
| 307 |
output_image = gr.Image(
|
| 308 |
label="Result",
|
|
@@ -325,7 +325,7 @@ with gr.Blocks() as demo:
|
|
| 325 |
|
| 326 |
# Text-to-Image Tab (Responsive Layout: Row on Desktop, Column on Mobile)
|
| 327 |
with gr.TabItem("Generate Image", id=1):
|
| 328 |
-
with gr.Row(): # <--
|
| 329 |
# Left Column (Inputs)
|
| 330 |
with gr.Column(scale=1, variant="panel"):
|
| 331 |
gr.Markdown("### 🎨 Generation Controls")
|
|
|
|
| 271 |
with gr.Tabs(selected=0):
|
| 272 |
# Image Edit Tab (Responsive Layout: Row on Desktop, Column on Mobile)
|
| 273 |
with gr.TabItem("Edit Image", id=0):
|
| 274 |
+
with gr.Row(): # <-- This creates the responsive horizontal layout on wide screens
|
| 275 |
# Left Column (Inputs)
|
| 276 |
+
with gr.Column(scale=1, variant="panel"): # <-- This is the first pane (left side)
|
| 277 |
gr.Markdown("### 🖼️ Input Image & Controls")
|
| 278 |
input_image = gr.Image(
|
| 279 |
label="Upload Image",
|
|
|
|
| 302 |
edit_btn = gr.Button("Edit Image", variant="primary", size="lg", elem_classes=["primary-btn"])
|
| 303 |
|
| 304 |
# Right Column (Output)
|
| 305 |
+
with gr.Column(scale=1, variant="panel"): # <-- This is the second pane (right side)
|
| 306 |
gr.Markdown("### ✨ Result")
|
| 307 |
output_image = gr.Image(
|
| 308 |
label="Result",
|
|
|
|
| 325 |
|
| 326 |
# Text-to-Image Tab (Responsive Layout: Row on Desktop, Column on Mobile)
|
| 327 |
with gr.TabItem("Generate Image", id=1):
|
| 328 |
+
with gr.Row(): # <-- This creates the responsive horizontal layout on wide screens
|
| 329 |
# Left Column (Inputs)
|
| 330 |
with gr.Column(scale=1, variant="panel"):
|
| 331 |
gr.Markdown("### 🎨 Generation Controls")
|