araeyn commited on
Commit
2a295e9
·
verified ·
1 Parent(s): a7f049b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -134,9 +134,9 @@ async def echo(websocket):
134
  },
135
  )["answer"]
136
  if response.startswith("? "):
137
- response.
138
  if response.lower().startswith("assistant: ") or response.lower().startswith("ai: "):
139
- response.replace("assistant: ", 1).replace("ai: ", 1)
140
  await websocket.send(json.dumps({"response": response}))
141
 
142
  async def main():
 
134
  },
135
  )["answer"]
136
  if response.startswith("? "):
137
+ response.replace("? ", "")
138
  if response.lower().startswith("assistant: ") or response.lower().startswith("ai: "):
139
+ response.replace("assistant: ", "").replace("ai: ", "")
140
  await websocket.send(json.dumps({"response": response}))
141
 
142
  async def main():