wyysf commited on
Commit
70f85a3
1 Parent(s): a70204b

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +6 -3
gradio_app.py CHANGED
@@ -331,9 +331,12 @@ if __name__=="__main__":
331
  seed = gr.Number(0, label='Seed', show_label=True)
332
  mvimg_model = gr.Dropdown(value="CRM", label="MV Image Model", choices=list(mvimg_model_config_list))
333
  more = gr.CheckboxGroup(["Remesh", "Symmetry(TBD)"], label="More", show_label=False)
334
- with gr.Row():
335
- # input prompt
336
- text = gr.Textbox(label="Prompt (Opt.)", info="only works for ImageDream")
 
 
 
337
 
338
  with gr.Accordion('Advanced options', open=False):
339
  # negative prompt
 
331
  seed = gr.Number(0, label='Seed', show_label=True)
332
  mvimg_model = gr.Dropdown(value="CRM", label="MV Image Model", choices=list(mvimg_model_config_list))
333
  more = gr.CheckboxGroup(["Remesh", "Symmetry(TBD)"], label="More", show_label=False)
334
+
335
+ @gr.render(inputs=mvimg_model)
336
+ def show_split(mvimg_model):
337
+ if mvimg_model == 'ImageDream':
338
+ # input prompt
339
+ text = gr.Textbox(label="Prompt (Opt.)", info="only works for ImageDream")
340
 
341
  with gr.Accordion('Advanced options', open=False):
342
  # negative prompt