Rooni commited on
Commit
7d7b90c
1 Parent(s): 4f8ff75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
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
- "parameters": {
53
- "is_negative": negative_prompt,
54
- "steps": steps,
55
- "cfg_scale": cfg_scale,
56
- "sampler": sampler,
57
- "seed": seed if seed != -1 else random.randint(1, 1000000000),
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
  # Получаем токен из переменных окружения