Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 97 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|