maxryabkov commited on
Commit
7e58cf7
·
verified ·
1 Parent(s): 472d983

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -79,7 +79,7 @@ with gr.Blocks(css=css) as demo:
79
 
80
  run_button = gr.Button("Run", scale=0, variant="primary")
81
 
82
- result = gr.Image(label="Result", show_label=False, type="pil", interactive=True)
83
 
84
  with gr.Accordion("Advanced Settings", open=False):
85
  negative_prompt = gr.Text(
@@ -122,15 +122,15 @@ with gr.Blocks(css=css) as demo:
122
  minimum=0.0,
123
  maximum=10.0,
124
  step=0.1,
125
- value=3.0, # Replace with defaults that work for your model
126
  )
127
 
128
  num_inference_steps = gr.Slider(
129
  label="Number of inference steps",
130
- minimum=1,
131
- maximum=50,
132
  step=1,
133
- value=15 # Replace with defaults that work for your model
134
  )
135
 
136
  gr.Examples(examples=examples, inputs=[prompt])
 
79
 
80
  run_button = gr.Button("Run", scale=0, variant="primary")
81
 
82
+ result = gr.Image(label="Result", show_label=False, type="pil", show_download_button=True, interactive=False)
83
 
84
  with gr.Accordion("Advanced Settings", open=False):
85
  negative_prompt = gr.Text(
 
122
  minimum=0.0,
123
  maximum=10.0,
124
  step=0.1,
125
+ value=3.5, # Replace with defaults that work for your model
126
  )
127
 
128
  num_inference_steps = gr.Slider(
129
  label="Number of inference steps",
130
+ minimum=10,
131
+ maximum=20,
132
  step=1,
133
+ value=13 # Replace with defaults that work for your model
134
  )
135
 
136
  gr.Examples(examples=examples, inputs=[prompt])