Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -75,11 +75,11 @@ if user_input:
|
|
75 |
activity_category = "creative"
|
76 |
|
77 |
suggested_activity = activities[activity_category]
|
78 |
-
st.write(f"Activity Suggestion: {suggested_activity}")
|
79 |
|
80 |
# Search YouTube for videos related to the selected activity
|
81 |
search = Search(suggested_activity[0])
|
82 |
-
search_results = search.results[:
|
83 |
for video in search_results:
|
84 |
st.write(f"[{video.title}]({video.watch_url})")
|
85 |
|
|
|
75 |
activity_category = "creative"
|
76 |
|
77 |
suggested_activity = activities[activity_category]
|
78 |
+
st.write(f"Activity Suggestion: {', '.join(suggested_activity)}")
|
79 |
|
80 |
# Search YouTube for videos related to the selected activity
|
81 |
search = Search(suggested_activity[0])
|
82 |
+
search_results = search.results[:2] # limit results to 2 videos
|
83 |
for video in search_results:
|
84 |
st.write(f"[{video.title}]({video.watch_url})")
|
85 |
|