akhaliq HF Staff commited on
Commit
ac0d81d
·
verified ·
1 Parent(s): 4670eb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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(): # <-- Re-introducing the responsive 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(): # <-- Re-introducing the responsive 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")