Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import os
|
2 |
import time
|
3 |
-
from typing import Union,
|
4 |
from urllib.parse import urlparse, parse_qs
|
5 |
import textwrap
|
6 |
import streamlit as st
|
@@ -26,7 +26,7 @@ def find_audio_files(path, extension=".mp3"):
|
|
26 |
return audio_files
|
27 |
|
28 |
|
29 |
-
def youtube_to_mp3(youtube_url: str, output_dir: str) -> Union[
|
30 |
ydl_config = {
|
31 |
"format": "bestaudio/best",
|
32 |
"postprocessors": [
|
|
|
1 |
import os
|
2 |
import time
|
3 |
+
from typing import Union, AnyStr
|
4 |
from urllib.parse import urlparse, parse_qs
|
5 |
import textwrap
|
6 |
import streamlit as st
|
|
|
26 |
return audio_files
|
27 |
|
28 |
|
29 |
+
def youtube_to_mp3(youtube_url: str, output_dir: str) -> Union[AnyStr, str, bytes]:
|
30 |
ydl_config = {
|
31 |
"format": "bestaudio/best",
|
32 |
"postprocessors": [
|