fabiogra commited on
Commit
7d22cea
1 Parent(s): 3ecd555

fix: remove unused packages, video_option unbound

Browse files
Files changed (3) hide show
  1. app/service/youtube.py +2 -0
  2. requirements.in +1 -3
  3. requirements.txt +2 -8
app/service/youtube.py CHANGED
@@ -63,6 +63,8 @@ def search_youtube(query: str) -> List:
63
  st.session_state.search_results = search.results
64
  if "search_results" in st.session_state and st.session_state.search_results is not None:
65
  video_options = [video.title for video in st.session_state.search_results]
 
 
66
  else:
67
  video_options = []
68
  st.session_state.video_options = video_options
 
63
  st.session_state.search_results = search.results
64
  if "search_results" in st.session_state and st.session_state.search_results is not None:
65
  video_options = [video.title for video in st.session_state.search_results]
66
+ else:
67
+ video_options = []
68
  else:
69
  video_options = []
70
  st.session_state.video_options = video_options
requirements.in CHANGED
@@ -1,13 +1,11 @@
1
  streamlit==1.22.*
2
  demucs==4.0.0
3
- plotly==5.13.0
4
  pandas==1.5.3
5
  pydub==0.25.1
6
  pytube==12.1.3
7
  streamlit-player==0.1.5
8
  streamlit-searchbox==0.1.2
9
- yt-dlp==2023.3.4
10
- kaleido==0.2.1
11
  matplotlib==3.7.1
12
  librosa==0.10.0.post2
13
  resampy==0.4.2
 
1
  streamlit==1.22.*
2
  demucs==4.0.0
 
3
  pandas==1.5.3
4
  pydub==0.25.1
5
  pytube==12.1.3
6
  streamlit-player==0.1.5
7
  streamlit-searchbox==0.1.2
8
+ yt-dlp==2023.7.6
 
9
  matplotlib==3.7.1
10
  librosa==0.10.0.post2
11
  resampy==0.4.2
requirements.txt CHANGED
@@ -83,8 +83,6 @@ jsonschema-specifications==2023.6.1
83
  # via jsonschema
84
  julius==0.2.7
85
  # via demucs
86
- kaleido==0.2.1
87
- # via -r requirements.in
88
  kiwisolver==1.4.4
89
  # via matplotlib
90
  lameenc==1.5.1
@@ -154,8 +152,6 @@ pillow==10.0.0
154
  # via
155
  # matplotlib
156
  # streamlit
157
- plotly==5.13.0
158
- # via -r requirements.in
159
  pooch==1.6.0
160
  # via librosa
161
  protobuf==3.20.3
@@ -243,9 +239,7 @@ submitit==1.4.5
243
  sympy==1.12
244
  # via torch
245
  tenacity==8.2.2
246
- # via
247
- # plotly
248
- # streamlit
249
  threadpoolctl==3.1.0
250
  # via scikit-learn
251
  toml==0.10.2
@@ -287,7 +281,7 @@ validators==0.20.0
287
  # via streamlit
288
  websockets==11.0.3
289
  # via yt-dlp
290
- yt-dlp==2023.3.4
291
  # via -r requirements.in
292
  zipp==3.16.0
293
  # via importlib-metadata
 
83
  # via jsonschema
84
  julius==0.2.7
85
  # via demucs
 
 
86
  kiwisolver==1.4.4
87
  # via matplotlib
88
  lameenc==1.5.1
 
152
  # via
153
  # matplotlib
154
  # streamlit
 
 
155
  pooch==1.6.0
156
  # via librosa
157
  protobuf==3.20.3
 
239
  sympy==1.12
240
  # via torch
241
  tenacity==8.2.2
242
+ # via streamlit
 
 
243
  threadpoolctl==3.1.0
244
  # via scikit-learn
245
  toml==0.10.2
 
281
  # via streamlit
282
  websockets==11.0.3
283
  # via yt-dlp
284
+ yt-dlp==2023.7.6
285
  # via -r requirements.in
286
  zipp==3.16.0
287
  # via importlib-metadata