LeoXing1996 commited on
Commit
2d9f1b0
1 Parent(s): 5e80b0e

revise style

Browse files
Files changed (1) hide show
  1. app-huggingface.py +8 -7
app-huggingface.py CHANGED
@@ -406,8 +406,9 @@ def ui():
406
  with gr.Column(scale=1.5, min_width=150):
407
  with_wishes = gr.Checkbox(label='With Wishes✨')
408
 
409
- style_dropdown = gr.Dropdown(label='Style', choices=list(
410
- STYLE_CONFIG_LIST.keys()), value=list(STYLE_CONFIG_LIST.keys())[0])
 
411
 
412
  with gr.Row():
413
  prompt_textbox = gr.Textbox(label="Prompt", lines=1)
@@ -472,11 +473,11 @@ def ui():
472
  with gr.Row():
473
  download = gr.Files(file_types=['gif', 'mp4'], label='Donwload Output')
474
 
475
- style_dropdown.change(fn=controller.fetch_default_n_prompt,
476
- inputs=[style_dropdown],
477
- outputs=[negative_prompt_textbox,
478
- ip_adapter_scale],
479
- queue=False)
480
 
481
  generate_button.click(
482
  fn=controller.animate,
 
406
  with gr.Column(scale=1.5, min_width=150):
407
  with_wishes = gr.Checkbox(label='With Wishes✨')
408
 
409
+ # style_dropdown = gr.Dropdown(label='Style', choices=list(
410
+ # STYLE_CONFIG_LIST.keys()), value=list(STYLE_CONFIG_LIST.keys())[0])
411
+ style_dropdown = gr.State('3d_cartoon')
412
 
413
  with gr.Row():
414
  prompt_textbox = gr.Textbox(label="Prompt", lines=1)
 
473
  with gr.Row():
474
  download = gr.Files(file_types=['gif', 'mp4'], label='Donwload Output')
475
 
476
+ # style_dropdown.change(fn=controller.fetch_default_n_prompt,
477
+ # inputs=[style_dropdown],
478
+ # outputs=[negative_prompt_textbox,
479
+ # ip_adapter_scale],
480
+ # queue=False)
481
 
482
  generate_button.click(
483
  fn=controller.animate,