Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -84,6 +84,11 @@ class PhonicHandler(AsyncStreamHandler):
|
|
84 |
except Exception as e:
|
85 |
raise WebRTCError(f"Error sending audio: {e}")
|
86 |
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
def add_to_chatbot(state, chatbot, message):
|
89 |
state.append(message)
|
|
|
84 |
except Exception as e:
|
85 |
raise WebRTCError(f"Error sending audio: {e}")
|
86 |
|
87 |
+
async def shutdown(self):
|
88 |
+
if self.client:
|
89 |
+
await self.client._websocket.close()
|
90 |
+
return super().shutdown()
|
91 |
+
|
92 |
|
93 |
def add_to_chatbot(state, chatbot, message):
|
94 |
state.append(message)
|