Ufoptg commited on
Commit
942d685
·
verified ·
1 Parent(s): 53c33cd

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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