Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,7 @@ negative_prompt = gr.Textbox(label="Negative Prompt")
|
|
13 |
sampling_method = gr.Radio(
|
14 |
["random", "greedy", "nucleus", "top_k", "top_p"], label="Sampling Method"
|
15 |
)
|
16 |
-
sampling_steps = gr.Number(
|
17 |
-
label="Sampling Steps", default=100, min=1, max=1000
|
18 |
-
) # Pass min and max as positional arguments
|
19 |
cfg_scale = gr.Number(label="CFG Scale", min=0.1, max=10.0, default=1.0)
|
20 |
seed = gr.Number(label="Seed", min=0, max=2**31, default=0)
|
21 |
|
|
|
13 |
sampling_method = gr.Radio(
|
14 |
["random", "greedy", "nucleus", "top_k", "top_p"], label="Sampling Method"
|
15 |
)
|
16 |
+
sampling_steps = gr.Number(label="Sampling Steps", value=100, min=1, max=1000) # Set default value within initialization
|
|
|
|
|
17 |
cfg_scale = gr.Number(label="CFG Scale", min=0.1, max=10.0, default=1.0)
|
18 |
seed = gr.Number(label="Seed", min=0, max=2**31, default=0)
|
19 |
|