Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files270 unmodified lines27127227327427527627727827922 unmodified lines30230330430530630730816 unmodified lines325326327328329330331270 unmodified lineswith gr.Tabs(selected=0):# Image Edit Tab (Responsive Layout: Row on Desktop, Column on Mobile)with gr.TabItem("Edit Image", id=0):with gr.Row(): # <-- Re-introducing the responsive row# Left Column (Inputs)with gr.Column(scale=1, variant="panel"):gr.Markdown("### 🖼️ Input Image & Controls")input_image = gr.Image(label="Upload Image",22 unmodified linesedit_btn = gr.Button("Edit Image", variant="primary", size="lg", elem_classes=["primary-btn"])# Right Column (Output)with gr.Column(scale=1, variant="panel"):gr.Markdown("### ✨ Result")output_image = gr.Image(label="Result",16 unmodified lines# Text-to-Image Tab (Responsive Layout: Row on Desktop, Column on Mobile)with gr.TabItem("Generate Image", id=1):with gr.Row(): # <-- Re-introducing the responsive row# Left Column (Inputs)with gr.Column(scale=1, variant="panel"):gr.Markdown("### 🎨 Generation Controls")270 unmodified lines27127227327427527627727827922 unmodified lines30230330430530630730816 unmodified lines325326327328329330331270 unmodified lineswith gr.Tabs(selected=0):# Image Edit Tab (Responsive Layout: Row on Desktop, Column on Mobile)with gr.TabItem("Edit Image", id=0):with gr.Row(): # <-- This creates the responsive horizontal layout on wide screens# Left Column (Inputs)with gr.Column(scale=1, variant="panel"): # <-- This is the first pane (left side)gr.Markdown("### 🖼️ Input Image & Controls")input_image = gr.Image(label="Upload Image",22 unmodified linesedit_btn = gr.Button("Edit Image", variant="primary", size="lg", elem_classes=["primary-btn"])# Right Column (Output)with gr.Column(scale=1, variant="panel"): # <-- This is the second pane (right side)gr.Markdown("### ✨ Result")output_image = gr.Image(label="Result",16 unmodified lines# Text-to-Image Tab (Responsive Layout: Row on Desktop, Column on Mobile)with gr.TabItem("Generate Image", id=1):with gr.Row(): # <-- This creates the responsive horizontal layout on wide screens# Left Column (Inputs)with gr.Column(scale=1, variant="panel"):gr.Markdown("### 🎨 Generation Controls")
app.py+4-4