Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -262,13 +262,13 @@ def v1beta3_google_ai(
|
|
262 |
except requests.exceptions.RequestException:
|
263 |
raise HTTPException(
|
264 |
status_code=500,
|
265 |
-
detail=CustomErrorResponseModel(detail=[
|
266 |
)
|
267 |
# return SuccessResponse(status="False", randydev={"message": internal_error})
|
268 |
except Exception:
|
269 |
raise HTTPException(
|
270 |
status_code=500,
|
271 |
-
detail=CustomErrorResponseModel(detail=[
|
272 |
)
|
273 |
# return SuccessResponse(status="False", randydev={"message": contact_support})
|
274 |
|
@@ -289,7 +289,7 @@ def dalle_3xl(
|
|
289 |
except requests.exceptions.RequestException:
|
290 |
raise HTTPException(
|
291 |
status_code=500,
|
292 |
-
detail=CustomErrorResponseModel(detail=[
|
293 |
)
|
294 |
|
295 |
try:
|
@@ -297,7 +297,7 @@ def dalle_3xl(
|
|
297 |
except Exception:
|
298 |
raise HTTPException(
|
299 |
status_code=500,
|
300 |
-
detail=CustomErrorResponseModel(detail=[
|
301 |
)
|
302 |
|
303 |
if encoded_string:
|
|
|
262 |
except requests.exceptions.RequestException:
|
263 |
raise HTTPException(
|
264 |
status_code=500,
|
265 |
+
detail=CustomErrorResponseModel(detail=[{"status": "False", "randydev": {"message": internal_error}}])
|
266 |
)
|
267 |
# return SuccessResponse(status="False", randydev={"message": internal_error})
|
268 |
except Exception:
|
269 |
raise HTTPException(
|
270 |
status_code=500,
|
271 |
+
detail=CustomErrorResponseModel(detail=[{"status": "False", "randydev": {"message": contact_support}}])
|
272 |
)
|
273 |
# return SuccessResponse(status="False", randydev={"message": contact_support})
|
274 |
|
|
|
289 |
except requests.exceptions.RequestException:
|
290 |
raise HTTPException(
|
291 |
status_code=500,
|
292 |
+
detail=CustomErrorResponseModel(detail=[{"status": "False", "randydev": {"data": internal_error}}])
|
293 |
)
|
294 |
|
295 |
try:
|
|
|
297 |
except Exception:
|
298 |
raise HTTPException(
|
299 |
status_code=500,
|
300 |
+
detail=CustomErrorResponseModel(detail=[{"status": "False", "randydev": {"data": contact_support}}])
|
301 |
)
|
302 |
|
303 |
if encoded_string:
|