Spaces:
Running
Running
JV A
commited on
Commit
·
a018aaa
1
Parent(s):
74f03eb
Update app.py
Browse files
app.py
CHANGED
@@ -65,6 +65,9 @@ def generate_image(prompt, negative_prompt, scheduler, steps, width, height, res
|
|
65 |
|
66 |
# Send the request
|
67 |
response = requests.post(apiUrl, headers=headers, data=json.dumps(body), verify=False)
|
|
|
|
|
|
|
68 |
|
69 |
# Check the response status
|
70 |
if response.status_code == 200:
|
|
|
65 |
|
66 |
# Send the request
|
67 |
response = requests.post(apiUrl, headers=headers, data=json.dumps(body), verify=False)
|
68 |
+
# Print the response body if the status code is not 200
|
69 |
+
if response.status_code != 200:
|
70 |
+
print(response.text)
|
71 |
|
72 |
# Check the response status
|
73 |
if response.status_code == 200:
|