Update app.py
Browse files
app.py
CHANGED
@@ -150,7 +150,7 @@ def query(prompt, negative_prompt="", steps=4, cfg_scale=0, seed=-1, width=1024,
|
|
150 |
print(f" Prompt: '{original_prompt}'\n") # Add newline
|
151 |
return None, "<p style='color: red; text-align: center;'>Configuration Error: API Token missing.</p>"
|
152 |
|
153 |
-
response = requests.post(API_URL, headers=headers, json=payload, timeout=timeout
|
154 |
response.raise_for_status()
|
155 |
|
156 |
image_bytes = response.content
|
|
|
150 |
print(f" Prompt: '{original_prompt}'\n") # Add newline
|
151 |
return None, "<p style='color: red; text-align: center;'>Configuration Error: API Token missing.</p>"
|
152 |
|
153 |
+
response = requests.post(API_URL, headers=headers, json=payload, timeout=timeout)
|
154 |
response.raise_for_status()
|
155 |
|
156 |
image_bytes = response.content
|