subhrajit mohanty commited on
Commit
4fbb5b8
·
1 Parent(s): af91e11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -62,7 +62,7 @@ def get_openai_generator(prompt: str):
62
  for event in openai_stream:
63
  if "content" in event["choices"][0].delta:
64
  current_response = event["choices"][0].delta.content
65
- yield "data: " + current_response + "\n\n"
66
 
67
  @app.get("/")
68
  async def base_url():
 
62
  for event in openai_stream:
63
  if "content" in event["choices"][0].delta:
64
  current_response = event["choices"][0].delta.content
65
+ yield current_response
66
 
67
  @app.get("/")
68
  async def base_url():