Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,6 @@ class AppleStyleTheme(gr.themes.Base):
|
|
| 36 |
**kwargs
|
| 37 |
)
|
| 38 |
# Use .set() to modify specific variables.
|
| 39 |
-
# Removed 'tabs_border_color' which caused the error.
|
| 40 |
self.set(
|
| 41 |
# Global Backgrounds
|
| 42 |
body_background_fill="*neutral_50",
|
|
@@ -212,8 +211,8 @@ with gr.Blocks(fill_width=True) as demo:
|
|
| 212 |
with gr.TabItem("Edit Image", id=0):
|
| 213 |
# gr.Row with NO variant or scale arguments on the row itself
|
| 214 |
with gr.Row():
|
| 215 |
-
# Left Column: Inputs
|
| 216 |
-
with gr.Column(scale=1,
|
| 217 |
gr.Markdown("### 🖼️ Input Image & Controls")
|
| 218 |
input_image = gr.Image(
|
| 219 |
label="Upload Image",
|
|
@@ -240,8 +239,8 @@ with gr.Blocks(fill_width=True) as demo:
|
|
| 240 |
|
| 241 |
edit_btn = gr.Button("Edit Image", variant="primary", size="lg")
|
| 242 |
|
| 243 |
-
# Right Column: Output
|
| 244 |
-
with gr.Column(scale=1,
|
| 245 |
gr.Markdown("### ✨ Result")
|
| 246 |
output_image = gr.Image(
|
| 247 |
label="Result",
|
|
@@ -264,8 +263,8 @@ with gr.Blocks(fill_width=True) as demo:
|
|
| 264 |
# Text-to-Image Tab
|
| 265 |
with gr.TabItem("Generate Image", id=1):
|
| 266 |
with gr.Row():
|
| 267 |
-
# Left Column: Inputs
|
| 268 |
-
with gr.Column(scale=1,
|
| 269 |
gr.Markdown("### 🎨 Generation Controls")
|
| 270 |
t2i_prompt = gr.Textbox(
|
| 271 |
label="Describe your image",
|
|
@@ -301,8 +300,8 @@ with gr.Blocks(fill_width=True) as demo:
|
|
| 301 |
|
| 302 |
generate_btn = gr.Button("Generate Image", variant="primary", size="lg")
|
| 303 |
|
| 304 |
-
# Right Column: Output
|
| 305 |
-
with gr.Column(scale=1,
|
| 306 |
gr.Markdown("### ✨ Result")
|
| 307 |
t2i_output = gr.Image(
|
| 308 |
label="Result",
|
|
|
|
| 36 |
**kwargs
|
| 37 |
)
|
| 38 |
# Use .set() to modify specific variables.
|
|
|
|
| 39 |
self.set(
|
| 40 |
# Global Backgrounds
|
| 41 |
body_background_fill="*neutral_50",
|
|
|
|
| 211 |
with gr.TabItem("Edit Image", id=0):
|
| 212 |
# gr.Row with NO variant or scale arguments on the row itself
|
| 213 |
with gr.Row():
|
| 214 |
+
# Left Column: Inputs - REMOVED min_width=0
|
| 215 |
+
with gr.Column(scale=1, variant="panel"):
|
| 216 |
gr.Markdown("### 🖼️ Input Image & Controls")
|
| 217 |
input_image = gr.Image(
|
| 218 |
label="Upload Image",
|
|
|
|
| 239 |
|
| 240 |
edit_btn = gr.Button("Edit Image", variant="primary", size="lg")
|
| 241 |
|
| 242 |
+
# Right Column: Output - REMOVED min_width=0
|
| 243 |
+
with gr.Column(scale=1, variant="panel"):
|
| 244 |
gr.Markdown("### ✨ Result")
|
| 245 |
output_image = gr.Image(
|
| 246 |
label="Result",
|
|
|
|
| 263 |
# Text-to-Image Tab
|
| 264 |
with gr.TabItem("Generate Image", id=1):
|
| 265 |
with gr.Row():
|
| 266 |
+
# Left Column: Inputs - REMOVED min_width=0
|
| 267 |
+
with gr.Column(scale=1, variant="panel"):
|
| 268 |
gr.Markdown("### 🎨 Generation Controls")
|
| 269 |
t2i_prompt = gr.Textbox(
|
| 270 |
label="Describe your image",
|
|
|
|
| 300 |
|
| 301 |
generate_btn = gr.Button("Generate Image", variant="primary", size="lg")
|
| 302 |
|
| 303 |
+
# Right Column: Output - REMOVED min_width=0
|
| 304 |
+
with gr.Column(scale=1, variant="panel"):
|
| 305 |
gr.Markdown("### ✨ Result")
|
| 306 |
t2i_output = gr.Image(
|
| 307 |
label="Result",
|