Tim Luka Horstmann
commited on
Commit
·
655702e
1
Parent(s):
c861c71
deploy
Browse files
app.py
CHANGED
|
@@ -139,7 +139,7 @@ def stream_response(query):
|
|
| 139 |
if buffer.endswith(" ") or buffer.endswith(".") or buffer.endswith("!"):
|
| 140 |
yield f"data: {buffer}\n\n"
|
| 141 |
buffer = ""
|
| 142 |
-
if buffer: # Flush any remaining
|
| 143 |
yield f"data: {buffer}\n\n"
|
| 144 |
yield "data: [DONE]\n\n"
|
| 145 |
class QueryRequest(BaseModel):
|
|
|
|
| 139 |
if buffer.endswith(" ") or buffer.endswith(".") or buffer.endswith("!"):
|
| 140 |
yield f"data: {buffer}\n\n"
|
| 141 |
buffer = ""
|
| 142 |
+
if buffer: # Flush any remaining buffer
|
| 143 |
yield f"data: {buffer}\n\n"
|
| 144 |
yield "data: [DONE]\n\n"
|
| 145 |
class QueryRequest(BaseModel):
|