Rooni commited on
Commit
71caee6
1 Parent(s): 6ec7bf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -115,7 +115,7 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
115
 
116
 
117
  payload = {
118
- "inputs": {"prompt": prompt,
119
  "width": width,
120
  "height": height,
121
  "is_negative": is_negative,
@@ -124,7 +124,7 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
124
  "seed": seed if seed != -1 else random.randint(1, 999999),
125
  "guidance_scale": cfg_scale,
126
  "num_inference_steps": steps,
127
- "negative_prompt": is_negative}
128
  }
129
 
130
  response = requests.post(f"{api_base}{API_URL}", headers=headers, json=payload, timeout=timeout)
 
115
 
116
 
117
  payload = {
118
+ "inputs": prompt,
119
  "width": width,
120
  "height": height,
121
  "is_negative": is_negative,
 
124
  "seed": seed if seed != -1 else random.randint(1, 999999),
125
  "guidance_scale": cfg_scale,
126
  "num_inference_steps": steps,
127
+ "negative_prompt": is_negative
128
  }
129
 
130
  response = requests.post(f"{api_base}{API_URL}", headers=headers, json=payload, timeout=timeout)