Spaces:
Running
Running
Commit
·
fc08c4e
1
Parent(s):
eb016d8
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,17 +32,20 @@ prompt = st.text_area("Enter your prompt:",
|
|
| 32 |
negative_prompt = st.text_area("Enter your negative prompt:",
|
| 33 |
"anime, cartoon, graphic, text, painting, crayon, graphite, abstract glitch, blurry")
|
| 34 |
|
| 35 |
-
seed = st.number_input("Random seed
|
| 36 |
# seed = 555
|
| 37 |
|
| 38 |
-
num_inference_steps = st.slider("Number of Inference Steps
|
| 39 |
min_value=1,
|
| 40 |
max_value=100,
|
| 41 |
-
value=20
|
| 42 |
-
|
|
|
|
|
|
|
| 43 |
min_value=0.0,
|
| 44 |
max_value=1.0,
|
| 45 |
-
value=0.8
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
|
|
@@ -54,7 +57,7 @@ if st.button('Generate Image'):
|
|
| 54 |
"prompt": prompt,
|
| 55 |
"parameters": {
|
| 56 |
"num_inference_steps": num_inference_steps,
|
| 57 |
-
|
| 58 |
"negative_prompt": negative_prompt
|
| 59 |
# "denoising_start": denoising_start
|
| 60 |
}
|
|
|
|
| 32 |
negative_prompt = st.text_area("Enter your negative prompt:",
|
| 33 |
"anime, cartoon, graphic, text, painting, crayon, graphite, abstract glitch, blurry")
|
| 34 |
|
| 35 |
+
seed = st.number_input("Random seed", value=555, placeholder="Type a number...", help="set to same value to generate same image, if other inputs are the same, change to generate a different image for same inputs")
|
| 36 |
# seed = 555
|
| 37 |
|
| 38 |
+
num_inference_steps = st.slider("Number of Inference Steps",
|
| 39 |
min_value=1,
|
| 40 |
max_value=100,
|
| 41 |
+
value=20,
|
| 42 |
+
help="more steps might improve quality, with diminishing marginal returns. 30-50 seems best, but your mileage may vary.")
|
| 43 |
+
|
| 44 |
+
denoising_start = st.slider("Denoising Start",
|
| 45 |
min_value=0.0,
|
| 46 |
max_value=1.0,
|
| 47 |
+
value=0.8,
|
| 48 |
+
help="when to stop modifying the overall image and start refining the details")
|
| 49 |
|
| 50 |
|
| 51 |
|
|
|
|
| 57 |
"prompt": prompt,
|
| 58 |
"parameters": {
|
| 59 |
"num_inference_steps": num_inference_steps,
|
| 60 |
+
"seed": seed,
|
| 61 |
"negative_prompt": negative_prompt
|
| 62 |
# "denoising_start": denoising_start
|
| 63 |
}
|