Bey007 commited on
Commit
2df2245
Β·
verified Β·
1 Parent(s): 60c78b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -73,8 +73,12 @@ def search_youtube_videos(query):
73
  link = video['link']
74
  video_links.append((title, link))
75
 
 
 
 
76
  return video_links
77
 
 
78
  # Streamlit UI
79
  st.title("Grief and Loss Support Bot 🌿")
80
  st.markdown("Your compassionate companion in tough times πŸ’š")
 
73
  link = video['link']
74
  video_links.append((title, link))
75
 
76
+ if not video_links:
77
+ video_links = [("No relevant videos found", "")] # Gracefully handle empty result
78
+
79
  return video_links
80
 
81
+
82
  # Streamlit UI
83
  st.title("Grief and Loss Support Bot 🌿")
84
  st.markdown("Your compassionate companion in tough times πŸ’š")