Rooni commited on
Commit
4c9869d
1 Parent(s): 08c972a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
72
  "is_negative": is_negative,
73
  "steps": steps,
74
  "cfg_scale": cfg_scale,
75
- "seed": seed if seed is not -1 else random.randint(1, 1000000000)
76
  }
77
 
78
  image_bytes = requests.post(API_URL, headers=headers, json=payload).content
 
72
  "is_negative": is_negative,
73
  "steps": steps,
74
  "cfg_scale": cfg_scale,
75
+ "seed": seed if seed != -1 else random.randint(1, 1000000000)
76
  }
77
 
78
  image_bytes = requests.post(API_URL, headers=headers, json=payload).content