John6666 commited on
Commit
8865e09
1 Parent(s): 84ea722

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -684,15 +684,15 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
684
  gr.Markdown(
685
  f"""
686
  This space is a modification of [r3gm's DiffuseCraft](https://huggingface.co/spaces/r3gm/DiffuseCraft).
687
- ### This demo uses [diffusers](https://github.com/huggingface/diffusers) to perform different tasks in image generation.
688
  """
689
  )
690
  with gr.Row():
691
  with gr.Tab("Generation"):
692
  v2b = V2UI()
693
  with gr.Column(scale=1):
694
- task_gui = gr.Dropdown(label="Task", choices=sdxl_task, value=task_model_list[0])
695
- model_name_gui = gr.Dropdown(label="Model", choices=model_list, value="votepurchase/animagine-xl-3.1", allow_custom_value=True)
 
696
  with gr.Group():
697
  prompt_gui = gr.Textbox(lines=6, placeholder="1girl, solo, ...", label="Prompt", show_copy_button=True)
698
  with gr.Accordion("Negative prompt, etc.", open=False):
@@ -714,8 +714,7 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
714
  copy_button_dbt = gr.Button(value="Copy to clipboard", visible=False)
715
  translate_prompt_button = gr.Button(value="Translate prompt to English", size="sm", variant="secondary")
716
 
717
- space_before_generate_button = gr.HTML("""<br />""")
718
- generate_button = gr.Button(value="GENERATE IMAGE", variant="primary")
719
 
720
  model_name_gui.change(
721
  update_task_options,
 
684
  gr.Markdown(
685
  f"""
686
  This space is a modification of [r3gm's DiffuseCraft](https://huggingface.co/spaces/r3gm/DiffuseCraft).
 
687
  """
688
  )
689
  with gr.Row():
690
  with gr.Tab("Generation"):
691
  v2b = V2UI()
692
  with gr.Column(scale=1):
693
+ with gr.Accordion("Model", open=False):
694
+ task_gui = gr.Dropdown(label="Task", choices=sdxl_task, value=task_model_list[0])
695
+ model_name_gui = gr.Dropdown(label="Model", choices=model_list, value="votepurchase/animagine-xl-3.1", allow_custom_value=True)
696
  with gr.Group():
697
  prompt_gui = gr.Textbox(lines=6, placeholder="1girl, solo, ...", label="Prompt", show_copy_button=True)
698
  with gr.Accordion("Negative prompt, etc.", open=False):
 
714
  copy_button_dbt = gr.Button(value="Copy to clipboard", visible=False)
715
  translate_prompt_button = gr.Button(value="Translate prompt to English", size="sm", variant="secondary")
716
 
717
+ generate_button = gr.Button(value="GENERATE IMAGE", size="lg", variant="primary")
 
718
 
719
  model_name_gui.change(
720
  update_task_options,