multimodalart HF Staff commited on
Commit
b0161b5
·
verified ·
1 Parent(s): 04b66f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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
- out_seed = gr.Number(label="Seed used", interactive=False, precision=0)
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, out_seed, out_caption],
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()