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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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())