Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -656,7 +656,7 @@ def handsome_chat_completions():
|
|
656 |
"index": 0,
|
657 |
"message": {
|
658 |
"role": "assistant",
|
659 |
-
"content": "
|
660 |
},
|
661 |
"finish_reason": "length",
|
662 |
}
|
|
|
656 |
"index": 0,
|
657 |
"message": {
|
658 |
"role": "assistant",
|
659 |
+
"content": image_url if image_url else "Failed to generate image", # Directly return the URL in content
|
660 |
},
|
661 |
"finish_reason": "length",
|
662 |
}
|