artintel235 commited on
Commit
24f0d39
·
verified ·
1 Parent(s): 9272e30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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