tensorkelechi commited on
Commit
86ce790
·
verified ·
1 Parent(s): 19092a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def audio_extraction(video_file, output_format):
34
  # temp_filename = video_file.name
35
  # video_path = f"{temp_filename}"
36
  audio = extract_audio(
37
- input_path=video_file, output_path=f"{str(video_file)[:-4]}.mp3", output_format=f"{output_format}"
38
  )
39
  return audio
40
 
 
34
  # temp_filename = video_file.name
35
  # video_path = f"{temp_filename}"
36
  audio = extract_audio(
37
+ input_path=os.fspath(video_file), output_path=f"{str(video_file)[:-4]}.mp3", output_format=f"{output_format}"
38
  )
39
  return audio
40