Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -208,16 +208,14 @@ with gr.Blocks(theme=gr.themes.Citrus(), title="Ideogram 4 (NF4) — diffusers p
|
|
| 208 |
randomize = gr.Checkbox(label="Randomize seed", value=True)
|
| 209 |
with gr.Column():
|
| 210 |
out_image = gr.Image(label="Output", type="pil")
|
| 211 |
-
|
| 212 |
-
out_caption = gr.Textbox(
|
| 213 |
label="Caption fed to the model (upsampled when enabled)",
|
| 214 |
-
lines=4,
|
| 215 |
)
|
| 216 |
|
| 217 |
run.click(
|
| 218 |
generate,
|
| 219 |
inputs=[prompt, mode, enhance, width, height, seed, randomize],
|
| 220 |
-
outputs=[out_image,
|
| 221 |
)
|
| 222 |
|
| 223 |
demo.queue().launch()
|
|
|
|
| 208 |
randomize = gr.Checkbox(label="Randomize seed", value=True)
|
| 209 |
with gr.Column():
|
| 210 |
out_image = gr.Image(label="Output", type="pil")
|
| 211 |
+
out_caption = gr.JSON(
|
|
|
|
| 212 |
label="Caption fed to the model (upsampled when enabled)",
|
|
|
|
| 213 |
)
|
| 214 |
|
| 215 |
run.click(
|
| 216 |
generate,
|
| 217 |
inputs=[prompt, mode, enhance, width, height, seed, randomize],
|
| 218 |
+
outputs=[out_image, seed, out_caption],
|
| 219 |
)
|
| 220 |
|
| 221 |
demo.queue().launch()
|