Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def query(prompt, is_realistic, num_inference_steps, negative):
|
|
103 |
payload = {
|
104 |
"inputs": prompt,
|
105 |
"seed": random.randint(1, 1000000000),
|
106 |
-
"parameters": {"num_inference_steps": num_inference_steps, "width": 480, "height": 640, "
|
107 |
}
|
108 |
|
109 |
response = requests.post(API_URL, headers=headers, json=payload, timeout=timeout)
|
|
|
103 |
payload = {
|
104 |
"inputs": prompt,
|
105 |
"seed": random.randint(1, 1000000000),
|
106 |
+
"parameters": {"num_inference_steps": num_inference_steps, "width": 480, "height": 640, "negative_prompt": negative}
|
107 |
}
|
108 |
|
109 |
response = requests.post(API_URL, headers=headers, json=payload, timeout=timeout)
|