VISION23 commited on
Commit
ee35602
·
verified ·
1 Parent(s): 8ef21ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -93,5 +93,9 @@ if btn:
93
  st.warning("Please upload an image to capture your emotion first")
94
  else:
95
  emotion = st.session_state["emotion"]
96
- webbrowser.open(f"https://www.youtube.com/results?search_query={lang}+{emotion}+movie+{singer}")
97
- st.session_state["emotion"] = "" # Reset emotion after recommendation
 
 
 
 
 
93
  st.warning("Please upload an image to capture your emotion first")
94
  else:
95
  emotion = st.session_state["emotion"]
96
+ youtube_link = f"https://www.youtube.com/results?search_query={lang}+{emotion}+movie+{singer}"
97
+ st.info(f"Recommended movies for {emotion}:")
98
+ st.write(youtube_link)
99
+ if st.button("Open YouTube"):
100
+ webbrowser.open(youtube_link)
101
+ st.session_state["emotion"] = "" # Reset emotion after recommendation