From 7d22cea31064973a94ecf731868a88c7c48c18d9 Mon Sep 17 00:00:00 2001 From: fabiogra Date: Tue, 11 Jul 2023 17:46:21 +0200 Subject: [PATCH] fix: remove unused packages, video_option unbound --- app/service/youtube.py | 2 ++ requirements.in | 4 +--- requirements.txt | 10 ++-------- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/app/service/youtube.py b/app/service/youtube.py index 9555552..193ff8c 100644 --- a/app/service/youtube.py +++ b/app/service/youtube.py @@ -63,6 +63,8 @@ def search_youtube(query: str) -> List: st.session_state.search_results = search.results if "search_results" in st.session_state and st.session_state.search_results is not None: video_options = [video.title for video in st.session_state.search_results] + else: + video_options = [] else: video_options = [] st.session_state.video_options = video_options diff --git a/requirements.in b/requirements.in index dfb64a4..9b8d34f 100644 --- a/requirements.in +++ b/requirements.in @@ -1,13 +1,11 @@ streamlit==1.22.* demucs==4.0.0 -plotly==5.13.0 pandas==1.5.3 pydub==0.25.1 pytube==12.1.3 streamlit-player==0.1.5 streamlit-searchbox==0.1.2 -yt-dlp==2023.3.4 -kaleido==0.2.1 +yt-dlp==2023.7.6 matplotlib==3.7.1 librosa==0.10.0.post2 resampy==0.4.2 diff --git a/requirements.txt b/requirements.txt index 9fa6af6..5f51351 100644 --- a/requirements.txt +++ b/requirements.txt @@ -83,8 +83,6 @@ jsonschema-specifications==2023.6.1 # via jsonschema julius==0.2.7 # via demucs -kaleido==0.2.1 - # via -r requirements.in kiwisolver==1.4.4 # via matplotlib lameenc==1.5.1 @@ -154,8 +152,6 @@ pillow==10.0.0 # via # matplotlib # streamlit -plotly==5.13.0 - # via -r requirements.in pooch==1.6.0 # via librosa protobuf==3.20.3 @@ -243,9 +239,7 @@ submitit==1.4.5 sympy==1.12 # via torch tenacity==8.2.2 - # via - # plotly - # streamlit + # via streamlit threadpoolctl==3.1.0 # via scikit-learn toml==0.10.2 @@ -287,7 +281,7 @@ validators==0.20.0 # via streamlit websockets==11.0.3 # via yt-dlp -yt-dlp==2023.3.4 +yt-dlp==2023.7.6 # via -r requirements.in zipp==3.16.0 # via importlib-metadata