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