wyysf commited on
Commit
1f86dbb
β€’
1 Parent(s): a5308ba

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +4 -8
gradio_app.py CHANGED
@@ -331,14 +331,10 @@ 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"], 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
- else:
341
- text = gr.Textbox(label="Prompt (Opt.)", visible=False)
342
 
343
  with gr.Accordion('Advanced options', open=False):
344
  # 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"], label="More", show_label=False)
334
+
335
+ with gr.Row():
336
+ # input prompt
337
+ text = gr.Textbox(label="Prompt (Opt.)", info="only works for ImageDream")
 
 
 
 
338
 
339
  with gr.Accordion('Advanced options', open=False):
340
  # negative prompt