Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def generate_img(concept, prompt):
|
|
42 |
if response.status_code == 200:
|
43 |
response_json = response.json()
|
44 |
print(response_json)
|
45 |
-
image = process_image_from_binary(response_json[
|
46 |
else:
|
47 |
print(f"Request failed with status code {response.status_code}")
|
48 |
|
|
|
42 |
if response.status_code == 200:
|
43 |
response_json = response.json()
|
44 |
print(response_json)
|
45 |
+
image = process_image_from_binary(response_json['img'])
|
46 |
else:
|
47 |
print(f"Request failed with status code {response.status_code}")
|
48 |
|