EL GHAFRAOUI AYOUB commited on
Commit
27b145e
·
1 Parent(s): 3b0cd66
Files changed (1) hide show
  1. app/main.py +2 -2
app/main.py CHANGED
@@ -277,10 +277,10 @@ Additional Requirements: {request.additional_requirements}"""
277
  'raw_content': response_content
278
  })}\n\n"""
279
  elif chunk["type"] == "error":
280
- yield f"data: {json.dumps({
281
  'type': 'error',
282
  'content': chunk['content']
283
- })}\n\n"
284
 
285
  return StreamingResponse(generate(), media_type="text/event-stream")
286
 
 
277
  'raw_content': response_content
278
  })}\n\n"""
279
  elif chunk["type"] == "error":
280
+ yield f"""data: {json.dumps({
281
  'type': 'error',
282
  'content': chunk['content']
283
+ })}\n\n"""
284
 
285
  return StreamingResponse(generate(), media_type="text/event-stream")
286