Spaces:
Runtime error
Runtime error
remove files after work is done
Browse files
app/routers/V1/voice/voice_router.py
CHANGED
@@ -72,7 +72,8 @@ async def transcribe_audio(
|
|
72 |
)
|
73 |
finally:
|
74 |
# Clean up the temporary file
|
75 |
-
os.remove(
|
|
|
76 |
|
77 |
except Exception as e:
|
78 |
print(e)
|
|
|
72 |
)
|
73 |
finally:
|
74 |
# Clean up the temporary file
|
75 |
+
os.remove(filename_original)
|
76 |
+
os.remove(filename_recorded)
|
77 |
|
78 |
except Exception as e:
|
79 |
print(e)
|