Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
|
@@ -500,7 +500,7 @@ async def bing_dalle(item: BingDalle):
|
|
| 500 |
|
| 501 |
try:
|
| 502 |
response = await generate_image(item.prompt, item.model)
|
| 503 |
-
|
| 504 |
# Check if response contains the expected data
|
| 505 |
if 'data' in response and response['data']:
|
| 506 |
# Assuming the URL is stored in 'url' key of the first item
|
|
|
|
| 500 |
|
| 501 |
try:
|
| 502 |
response = await generate_image(item.prompt, item.model)
|
| 503 |
+
return {"status": "true", "sukuna": {"message": response}}
|
| 504 |
# Check if response contains the expected data
|
| 505 |
if 'data' in response and response['data']:
|
| 506 |
# Assuming the URL is stored in 'url' key of the first item
|