Ufoptg commited on
Commit
d3d434f
·
verified ·
1 Parent(s): 3dd598c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -279,7 +279,7 @@ def dalle_3xl(
279
  except requests.exceptions.RequestException:
280
  raise HTTPException(
281
  status_code=500,
282
- detail=CustomErrorResponseModel(error=internal_error)
283
  )
284
 
285
  try:
@@ -287,7 +287,7 @@ def dalle_3xl(
287
  except Exception:
288
  raise HTTPException(
289
  status_code=500,
290
- detail=CustomErrorResponseModel(error=contact_support)
291
  )
292
 
293
  if encoded_string:
 
279
  except requests.exceptions.RequestException:
280
  raise HTTPException(
281
  status_code=500,
282
+ detail=CustomErrorResponseModel(error=[{internal_error}])
283
  )
284
 
285
  try:
 
287
  except Exception:
288
  raise HTTPException(
289
  status_code=500,
290
+ detail=CustomErrorResponseModel(error=[{contact_support}])
291
  )
292
 
293
  if encoded_string: