Spaces:
Paused
Paused
Update main.py
Browse files
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:
|