Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -168,4 +168,4 @@ async def chat(request: Request):
|
|
| 168 |
await asyncio.sleep(0)
|
| 169 |
yield json.dumps({"message": {"role": "assistant", "content": ""}, "done": True}) + "\n"
|
| 170 |
|
| 171 |
-
return StreamingResponse(event_stream(), media_type="application/x-ndjson", headers={"X-Accel-Buffering": "no"})
|
|
|
|
| 168 |
await asyncio.sleep(0)
|
| 169 |
yield json.dumps({"message": {"role": "assistant", "content": ""}, "done": True}) + "\n"
|
| 170 |
|
| 171 |
+
return StreamingResponse(event_stream(), media_type="application/x-ndjson", headers={"X-Accel-Buffering": "no"})
|