tiennlu commited on
Commit
c802685
·
verified ·
1 Parent(s): 314358b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import os
2
  import time
3
- from typing import Union, LiteralString
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[LiteralString, str, bytes]:
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": [