Spaces:
Runtime error
Runtime error
Update app.py
Browse files129 unmodified lines130131132133134135136137138139129 unmodified lines"configurable": {"session_id": token}},)["answer"]if response.startswith("? "):response.replace("? ", "")if "assistant: " in response.lower() or "ai: " in response.lower():response.replace("Assistant:", "").replace("AI:", "")response.replace("\n", "")response.strip()await websocket.send(json.dumps({"response": response}))129 unmodified lines130131132133134135136129 unmodified lines"configurable": {"session_id": token}},)["answer"]response.replace("Assistant:", "").replace("AI:", "")response.replace("\n", "")response.strip()await websocket.send(json.dumps({"response": response}))
app.py+1-4