Update app.py
Browse files
app.py
CHANGED
@@ -145,10 +145,10 @@ async def c_cmp(payload: Payload):
|
|
145 |
delta = item[len(text):]
|
146 |
yield "data: " + json.dumps(
|
147 |
make_chunk_obj(i, delta, None)
|
148 |
-
) + "\n"
|
149 |
text = item
|
150 |
|
151 |
-
yield "data: " + json.dumps(make_chunk_obj(i, "", "stop"))
|
152 |
-
yield "data: [END]"
|
153 |
|
154 |
return StreamingResponse(streamer())
|
|
|
145 |
delta = item[len(text):]
|
146 |
yield "data: " + json.dumps(
|
147 |
make_chunk_obj(i, delta, None)
|
148 |
+
) + "\n\n"
|
149 |
text = item
|
150 |
|
151 |
+
yield "data: " + json.dumps(make_chunk_obj(i, "", "stop")) + "\n\n"
|
152 |
+
yield "data: [END]" + "\n\n"
|
153 |
|
154 |
return StreamingResponse(streamer())
|