Voffchik commited on
Commit
4e49f93
·
verified ·
1 Parent(s): 00e5d15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,7 +34,7 @@ async def generate_image(request: ImageRequest):
34
  try:
35
  response = requests.post(url, headers=headers, json=json_data)
36
  response.raise_for_status()
37
- data = response.json()
38
- return data
39
  except Exception as e:
40
  return {"error": str(e)}
 
34
  try:
35
  response = requests.post(url, headers=headers, json=json_data)
36
  response.raise_for_status()
37
+
38
+ return response.json()
39
  except Exception as e:
40
  return {"error": str(e)}