Update app.py
Browse files
app.py
CHANGED
|
@@ -86,4 +86,7 @@ async def transcribe(websocket: WebSocket):
|
|
| 86 |
finally:
|
| 87 |
if tmp_path and os.path.exists(tmp_path):
|
| 88 |
os.remove(tmp_path)
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
finally:
|
| 87 |
if tmp_path and os.path.exists(tmp_path):
|
| 88 |
os.remove(tmp_path)
|
| 89 |
+
try:
|
| 90 |
+
await websocket.close()
|
| 91 |
+
except Exception:
|
| 92 |
+
pass
|