fffiloni commited on
Commit
46b7d04
1 Parent(s): f80aa7e

Update app_text_to_3d.py

Browse files
Files changed (1) hide show
  1. app_text_to_3d.py +2 -1
app_text_to_3d.py CHANGED
@@ -19,6 +19,7 @@ def create_demo(model: Model) -> gr.Blocks:
19
  placeholder='Enter your prompt',
20
  visible=False).style(container=False)
21
  run_button = gr.Button('Run').style(full_width=False)
 
22
  result = gr.Model3D(label='Result', show_label=False)
23
  with gr.Accordion('Advanced options', open=False):
24
  seed = gr.Slider(label='Seed',
@@ -57,7 +58,7 @@ def create_demo(model: Model) -> gr.Blocks:
57
  ).then(
58
  fn=model.run_text,
59
  inputs=inputs,
60
- outputs=result,
61
  api_name='text-to-3d',
62
  )
63
  return demo
 
19
  placeholder='Enter your prompt',
20
  visible=False).style(container=False)
21
  run_button = gr.Button('Run').style(full_width=False)
22
+ caption = gr.Textbox(label="Caption from CoCa")
23
  result = gr.Model3D(label='Result', show_label=False)
24
  with gr.Accordion('Advanced options', open=False):
25
  seed = gr.Slider(label='Seed',
 
58
  ).then(
59
  fn=model.run_text,
60
  inputs=inputs,
61
+ outputs=[caption, result],
62
  api_name='text-to-3d',
63
  )
64
  return demo