Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ async def generate_image_async(prompt, aspect_ratio):
|
|
52 |
response_data = "No credits available"
|
53 |
return response_data
|
54 |
elif "output" in response_data:
|
55 |
-
return response_data['output']
|
56 |
else:
|
57 |
return "Error: Unexpected response from GLIF API."
|
58 |
|
|
|
52 |
response_data = "No credits available"
|
53 |
return response_data
|
54 |
elif "output" in response_data:
|
55 |
+
return f"prompt:{response_data['inputs']['Prompt']}\noutput:{response_data['output']}"
|
56 |
else:
|
57 |
return "Error: Unexpected response from GLIF API."
|
58 |
|