Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ if user_input:
|
|
59 |
|
60 |
# Search YouTube for videos related to the selected activity
|
61 |
search = Search(activity)
|
62 |
-
search_results = search.results[:
|
63 |
for video in search_results:
|
64 |
st.write(f"[{video.title}]({video.watch_url})")
|
65 |
|
|
|
59 |
|
60 |
# Search YouTube for videos related to the selected activity
|
61 |
search = Search(activity)
|
62 |
+
search_results = search.results[:3] # limit results to 2 videos
|
63 |
for video in search_results:
|
64 |
st.write(f"[{video.title}]({video.watch_url})")
|
65 |
|