Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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():
|