charliebaby2023 commited on
Commit
64a3308
·
verified ·
1 Parent(s): d41aa19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -29,6 +29,8 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
29
  with gr.Row():
30
  with gr.Column(scale=10):
31
  with gr.Group():
 
 
32
  prompt = gr.Text(label="Prompt", lines=2, max_lines=8, placeholder="1girl, solo, ...", show_copy_button=True)
33
  with gr.Accordion("Advanced options", open=False):
34
  neg_prompt = gr.Text(label="Negative Prompt", lines=1, max_lines=8, placeholder="")
@@ -48,18 +50,17 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
48
  positive_suffix = gr.CheckboxGroup(label="Use Positive Suffix", choices=get_positive_suffix(), value=["Common"])
49
  negative_prefix = gr.CheckboxGroup(label="Use Negative Prefix", choices=get_negative_prefix(), value=[])
50
  negative_suffix = gr.CheckboxGroup(label="Use Negative Suffix", choices=get_negative_suffix(), value=["Common"])
51
- with gr.Row(equal_height=True):
52
- image_num = gr.Slider(label="Number of images", minimum=1, maximum=max_images, value=1, step=1, interactive=True, scale=2)
53
-
54
  with gr.Row(equal_height=True):
55
  run_button = gr.Button("Generate Image", variant="primary", scale=6)
56
  random_button = gr.Button("Random Model 🎲", variant="secondary", scale=3)
57
  #stop_button = gr.Button('Stop', variant="stop", interactive=False, scale=1)
58
- with gr.Group():
59
- model_name = gr.Dropdown(label="Select Model", choices=list(loaded_models.keys()), value=list(loaded_models.keys())[0], allow_custom_value=True)
60
- model_info = gr.Markdown(value=get_model_info_md(list(loaded_models.keys())[0]), elem_classes="model_info")
61
  with gr.Column(scale=10):
62
  with gr.Group():
 
 
63
  with gr.Row():
64
  output = [gr.Image(label='', elem_classes="output", type="filepath", format="png",
65
  show_download_button=True, show_share_button=False, show_label=False,
 
29
  with gr.Row():
30
  with gr.Column(scale=10):
31
  with gr.Group():
32
+ model_name = gr.Dropdown(label="Select Model", choices=list(loaded_models.keys()), value=list(loaded_models.keys())[0], allow_custom_value=True)
33
+ model_info = gr.Markdown(value=get_model_info_md(list(loaded_models.keys())[0]), elem_classes="model_info")
34
  prompt = gr.Text(label="Prompt", lines=2, max_lines=8, placeholder="1girl, solo, ...", show_copy_button=True)
35
  with gr.Accordion("Advanced options", open=False):
36
  neg_prompt = gr.Text(label="Negative Prompt", lines=1, max_lines=8, placeholder="")
 
50
  positive_suffix = gr.CheckboxGroup(label="Use Positive Suffix", choices=get_positive_suffix(), value=["Common"])
51
  negative_prefix = gr.CheckboxGroup(label="Use Negative Prefix", choices=get_negative_prefix(), value=[])
52
  negative_suffix = gr.CheckboxGroup(label="Use Negative Suffix", choices=get_negative_suffix(), value=["Common"])
53
+
 
 
54
  with gr.Row(equal_height=True):
55
  run_button = gr.Button("Generate Image", variant="primary", scale=6)
56
  random_button = gr.Button("Random Model 🎲", variant="secondary", scale=3)
57
  #stop_button = gr.Button('Stop', variant="stop", interactive=False, scale=1)
58
+
59
+
 
60
  with gr.Column(scale=10):
61
  with gr.Group():
62
+ with gr.Row(equal_height=True):
63
+ image_num = gr.Slider(label="Number of images", minimum=1, maximum=max_images, value=1, step=1, interactive=True, scale=2)
64
  with gr.Row():
65
  output = [gr.Image(label='', elem_classes="output", type="filepath", format="png",
66
  show_download_button=True, show_share_button=False, show_label=False,