John6666 commited on
Commit
278e75f
β€’
1 Parent(s): 29db206

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -26,10 +26,10 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
26
  prompt = gr.Text(label="Prompt", lines=2, max_lines=8, placeholder="1girl, solo, ...", show_copy_button=True)
27
  neg_prompt = gr.Text(label="Negative Prompt", lines=1, max_lines=8, placeholder="")
28
  with gr.Accordion("Advanced options", open=False):
29
- width = gr.Number(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=None)
30
- height = gr.Number(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=None)
31
- steps = gr.Number(label="Number of inference steps", info="If 0, the default value is used.", maximum=100, step=1, value=None)
32
- cfg = gr.Number(label="Guidance scale", info="If 0, the default value is used.", maximum=30.0, step=0.1, value=None)
33
  with gr.Accordion("Recommended Prompt", open=False):
34
  recom_prompt_preset = gr.Radio(label="Set Presets", choices=get_recom_prompt_type(), value="Common")
35
  with gr.Row():
 
26
  prompt = gr.Text(label="Prompt", lines=2, max_lines=8, placeholder="1girl, solo, ...", show_copy_button=True)
27
  neg_prompt = gr.Text(label="Negative Prompt", lines=1, max_lines=8, placeholder="")
28
  with gr.Accordion("Advanced options", open=False):
29
+ width = gr.Number(label="Width", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
30
+ height = gr.Number(label="Height", info="If 0, the default value is used.", maximum=1216, step=32, value=0)
31
+ steps = gr.Number(label="Number of inference steps", info="If 0, the default value is used.", maximum=100, step=1, value=0)
32
+ cfg = gr.Number(label="Guidance scale", info="If 0, the default value is used.", maximum=30.0, step=0.1, value=0)
33
  with gr.Accordion("Recommended Prompt", open=False):
34
  recom_prompt_preset = gr.Radio(label="Set Presets", choices=get_recom_prompt_type(), value="Common")
35
  with gr.Row():