r3Vibe commited on
Commit
668c4d2
1 Parent(s): 24f6bf4

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(filename)
 
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)