araeyn commited on
Commit
eb935db
1 Parent(s): 0404bfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -132,6 +132,8 @@ async def echo(websocket):
132
  )["answer"]
133
  response = response.replace("Assistant: ", "").replace("AI: ", "")
134
  response.strip()
 
 
135
  await websocket.send(json.dumps({"response": response}))
136
 
137
  async def main():
 
132
  )["answer"]
133
  response = response.replace("Assistant: ", "").replace("AI: ", "")
134
  response.strip()
135
+ while response.startswith("\n"):
136
+ response = response[2:]
137
  await websocket.send(json.dumps({"response": response}))
138
 
139
  async def main():