AWeirdDev commited on
Commit
0352374
·
verified ·
1 Parent(s): 46e7e6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -145,7 +145,7 @@ async def c_cmp(payload: Payload):
145
  delta = item[len(text):]
146
  yield "data: " + json.dumps(
147
  make_chunk_obj(i, delta, None)
148
- )
149
  text = item
150
 
151
  yield "data: " + json.dumps(make_chunk_obj(i, "", "stop"))
 
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"))