Spaces:
Runtime error
Runtime error
Update app.py
Browse files131 unmodified lines132133134135136137138139131 unmodified lines)["answer"]if response.startswith("? "):response.replace("? ", "")if response.lower().replace("\n", "").startswith("assistant: ") or response.lower().replace("\n", "").startswith("ai: "):response.replace("Assistant: ", "").replace("AI: ", "")await websocket.send(json.dumps({"response": response}))async def main():131 unmodified lines132133134135136137138139140141131 unmodified lines)["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}))async def main():
app.py+4-2