Update app.py
Browse files
app.py
CHANGED
@@ -49,14 +49,12 @@ def generate_image(prompt, model, negative_prompt, steps, cfg_scale, sampler, se
|
|
49 |
|
50 |
payload = {
|
51 |
"inputs": enhanced_prompt,
|
52 |
-
"
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
"strength": strength
|
59 |
-
}
|
60 |
}
|
61 |
|
62 |
# Получаем токен из переменных окружения
|
|
|
49 |
|
50 |
payload = {
|
51 |
"inputs": enhanced_prompt,
|
52 |
+
"is_negative": negative_prompt,
|
53 |
+
"steps": steps,
|
54 |
+
"cfg_scale": cfg_scale,
|
55 |
+
"sampler": sampler,
|
56 |
+
"seed": seed if seed != -1 else random.randint(1, 1000000000),
|
57 |
+
"strength": strength
|
|
|
|
|
58 |
}
|
59 |
|
60 |
# Получаем токен из переменных окружения
|