Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|