Spaces:
Running on Zero
Running on Zero
Commit ·
d29a4c4
1
Parent(s): 1e34c9b
Drop prompt label; cap app width at 1200px
Browse files
app.py
CHANGED
|
@@ -330,16 +330,21 @@ Runs [Z-Image](https://huggingface.co/Tongyi-MAI/Z-Image) (live previews via TAE
|
|
| 330 |
super-resolved result. The slider compares Z-Image's native VAE output to the PiD upscale.
|
| 331 |
"""
|
| 332 |
|
| 333 |
-
CSS = "
|
|
|
|
|
|
|
|
|
|
| 334 |
|
| 335 |
with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
|
| 336 |
gr.Markdown(DESCRIPTION)
|
| 337 |
with gr.Row():
|
| 338 |
prompt = gr.Textbox(
|
| 339 |
-
|
|
|
|
| 340 |
value="A photorealistic close-up of a brown tabby cat sitting on a rustic wooden table, morning light, ultra-detailed fur",
|
| 341 |
lines=1,
|
| 342 |
scale=4,
|
|
|
|
| 343 |
)
|
| 344 |
run = gr.Button("Run", variant="primary", scale=1)
|
| 345 |
|
|
|
|
| 330 |
super-resolved result. The slider compares Z-Image's native VAE output to the PiD upscale.
|
| 331 |
"""
|
| 332 |
|
| 333 |
+
CSS = """
|
| 334 |
+
.gradio-container { max-width: 1200px !important; margin: auto !important; }
|
| 335 |
+
.dark .gradio-container { color: var(--body-text-color); }
|
| 336 |
+
"""
|
| 337 |
|
| 338 |
with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
|
| 339 |
gr.Markdown(DESCRIPTION)
|
| 340 |
with gr.Row():
|
| 341 |
prompt = gr.Textbox(
|
| 342 |
+
show_label=False,
|
| 343 |
+
placeholder="Describe what you want to generate…",
|
| 344 |
value="A photorealistic close-up of a brown tabby cat sitting on a rustic wooden table, morning light, ultra-detailed fur",
|
| 345 |
lines=1,
|
| 346 |
scale=4,
|
| 347 |
+
container=False,
|
| 348 |
)
|
| 349 |
run = gr.Button("Run", variant="primary", scale=1)
|
| 350 |
|