Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,8 +55,8 @@ def query(prompt, model, width, height, is_negative=False, steps=20, cfg_scale=7
|
|
| 55 |
"steps": steps,
|
| 56 |
"cfg_scale": cfg_scale,
|
| 57 |
"seed": seed if seed is not None else random.randint(-1, 2147483647),
|
| 58 |
-
"
|
| 59 |
-
"
|
| 60 |
}
|
| 61 |
|
| 62 |
image_bytes = requests.post(API_URL, headers=headers, json=payload).content
|
|
|
|
| 55 |
"steps": steps,
|
| 56 |
"cfg_scale": cfg_scale,
|
| 57 |
"seed": seed if seed is not None else random.randint(-1, 2147483647),
|
| 58 |
+
"output_width": width,
|
| 59 |
+
"output_height": height
|
| 60 |
}
|
| 61 |
|
| 62 |
image_bytes = requests.post(API_URL, headers=headers, json=payload).content
|