Update main.py
Browse files
main.py
CHANGED
|
@@ -72,6 +72,11 @@ def generate_image(inputs, is_negative, steps, cfg_scale, seed):
|
|
| 72 |
prompt_with_noise = add_random_noise(inputs) + f" - {timestamp}"
|
| 73 |
image_bytes = generate_image({
|
| 74 |
"inputs": "Astronaut riding a horse",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
})
|
| 76 |
payload = {
|
| 77 |
"inputs": prompt_with_noise,
|
|
|
|
| 72 |
prompt_with_noise = add_random_noise(inputs) + f" - {timestamp}"
|
| 73 |
image_bytes = generate_image({
|
| 74 |
"inputs": "Astronaut riding a horse",
|
| 75 |
+
"noise_level" : "float",
|
| 76 |
+
"is_negative: flurry" ,
|
| 77 |
+
"steps" : "int = 20" ,
|
| 78 |
+
"cfg_scale" : "int = 4.5" ,
|
| 79 |
+
"seed" : "int = None"
|
| 80 |
})
|
| 81 |
payload = {
|
| 82 |
"inputs": prompt_with_noise,
|