Bey007 commited on
Commit
87eb7fb
·
verified ·
1 Parent(s): 84bd677

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -73,7 +73,10 @@ def generate_response(user_input):
73
  # Search YouTube for videos related to the selected activity
74
  search = Search(activity)
75
  search_results = search.results[:3] # limit results to 3 videos
 
 
76
  if search_results:
 
77
  for video in search_results:
78
  st.write(f"[{video.title}]({video.watch_url})")
79
  else:
 
73
  # Search YouTube for videos related to the selected activity
74
  search = Search(activity)
75
  search_results = search.results[:3] # limit results to 3 videos
76
+
77
+ # Debug: Check if search results are found
78
  if search_results:
79
+ st.write(f"Found {len(search_results)} video(s) related to '{activity}'!")
80
  for video in search_results:
81
  st.write(f"[{video.title}]({video.watch_url})")
82
  else: