Amrrs commited on
Commit
e0e6932
1 Parent(s): 456bbb4

fixed output_dir

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def translate(video):
26
  translate_options = dict(task="translate", **options)
27
  result = model.transcribe(audio_file,**translate_options)
28
 
29
- #output_dir = '/content/'
30
  audio_path = audio_file.split(".")[0]
31
 
32
  with open(os.path.join(output_dir, audio_path + ".vtt"), "w") as vtt:
 
26
  translate_options = dict(task="translate", **options)
27
  result = model.transcribe(audio_file,**translate_options)
28
 
29
+ output_dir = ''
30
  audio_path = audio_file.split(".")[0]
31
 
32
  with open(os.path.join(output_dir, audio_path + ".vtt"), "w") as vtt: