Bey007 commited on
Commit
d77c966
·
verified ·
1 Parent(s): fb4e4b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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[:3] # limit results to 3 videos
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