NeuralFalcon commited on
Commit
10210b4
·
verified ·
1 Parent(s): 920380e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -207,6 +207,8 @@ def whisper_subtitle(uploaded_file,Source_Language,max_words_per_subtitle=8):
207
  src_lang=Source_Language
208
 
209
  sentence_timestamp,words_timestamp,text=format_segments(segments)
 
 
210
  del faster_whisper_model
211
  gc.collect()
212
  torch.cuda.empty_cache()
 
207
  src_lang=Source_Language
208
 
209
  sentence_timestamp,words_timestamp,text=format_segments(segments)
210
+ if os.path.exists(audio_path):
211
+ os.remove(audio_path)
212
  del faster_whisper_model
213
  gc.collect()
214
  torch.cuda.empty_cache()