Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -490,8 +490,6 @@ async def bing_dalle(item: BingDalle):
|
|
490 |
|
491 |
image_url = response.get('data', [])[0].get('url')
|
492 |
return {"status": "true", "sukuna": {"message": image_url}}
|
493 |
-
except BingImagesException as e:
|
494 |
-
return {"status": "false", "message": f"BingImages Error: {e}"}
|
495 |
except IndexError:
|
496 |
return {"status": "false", "message": "No image URL found in the response"}
|
497 |
except BaseException as e:
|
|
|
490 |
|
491 |
image_url = response.get('data', [])[0].get('url')
|
492 |
return {"status": "true", "sukuna": {"message": image_url}}
|
|
|
|
|
493 |
except IndexError:
|
494 |
return {"status": "false", "message": "No image URL found in the response"}
|
495 |
except BaseException as e:
|