Update app.py
Browse files
app.py
CHANGED
@@ -591,10 +591,10 @@ def handsome_chat_completions():
|
|
591 |
|
592 |
yield "data: [DONE]\n\n"
|
593 |
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
|
599 |
first_chunk_time = None
|
600 |
full_response_content = ""
|
|
|
591 |
|
592 |
yield "data: [DONE]\n\n"
|
593 |
|
594 |
+
return Response(
|
595 |
+
stream_with_context(generate()),
|
596 |
+
content_type="text/event-stream"
|
597 |
+
)
|
598 |
|
599 |
first_chunk_time = None
|
600 |
full_response_content = ""
|