Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,8 @@ def youtube_video_downloader(url):
|
|
| 34 |
|
| 35 |
|
| 36 |
def audio_extraction(video_file):
|
| 37 |
-
|
|
|
|
| 38 |
return audio
|
| 39 |
|
| 40 |
|
|
|
|
| 34 |
|
| 35 |
|
| 36 |
def audio_extraction(video_file):
|
| 37 |
+
video_file_bytes = os.fsencode(video_file)
|
| 38 |
+
audio = extract_audio(input_path=video_file_bytes, output_path=f"{video_file}.mp3")
|
| 39 |
return audio
|
| 40 |
|
| 41 |
|