Spaces:
Sleeping
Sleeping
fabiogra
commited on
Commit
•
de22091
1
Parent(s):
86d9560
fix: session exceptions related to search_results
Browse files- app/service/youtube.py +1 -1
app/service/youtube.py
CHANGED
@@ -61,7 +61,7 @@ def search_youtube(query: str) -> List:
|
|
61 |
time.sleep(0.5)
|
62 |
search = query_youtube(query + " lyrics")
|
63 |
st.session_state.search_results = search.results
|
64 |
-
if 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 = []
|
|
|
61 |
time.sleep(0.5)
|
62 |
search = query_youtube(query + " lyrics")
|
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 = []
|