Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -115,16 +115,16 @@ def query(prompt, model, is_negative=False, steps=30, cfg_scale=7, sampler="DPM+
|
|
115 |
|
116 |
|
117 |
payload = {
|
118 |
-
"inputs": prompt,
|
|
|
|
|
119 |
"is_negative": is_negative,
|
120 |
"steps": steps,
|
121 |
"cfg_scale": cfg_scale,
|
122 |
"seed": seed if seed != -1 else random.randint(1, 999999),
|
123 |
"guidance_scale": cfg_scale,
|
124 |
"num_inference_steps": steps,
|
125 |
-
"negative_prompt": is_negative
|
126 |
-
"width": width,
|
127 |
-
"height": height
|
128 |
}
|
129 |
|
130 |
response = requests.post(f"{api_base}{API_URL}", headers=headers, json=payload, timeout=timeout)
|
|
|
115 |
|
116 |
|
117 |
payload = {
|
118 |
+
"inputs": {"prompt": prompt,
|
119 |
+
"width": width,
|
120 |
+
"height": height,
|
121 |
"is_negative": is_negative,
|
122 |
"steps": steps,
|
123 |
"cfg_scale": cfg_scale,
|
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)
|