Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def get_youtube_playlist(question):
|
|
100 |
Check if the question contains a keyword and return the corresponding Youtube playlist link.
|
101 |
"""
|
102 |
keyword_links = {
|
103 |
-
"sad": "
|
104 |
"happy": "Get hyped with this energetic Youtube playlist this upbeat Youtube playlist for when you're feeling happy: https://www.youtube.com/playlist?list=PLPE5bssIbSTnsN_-gd3-2sgHxm7i4CSSS",
|
105 |
"mad":"Enjoy this energtic playlist when you are pressed:https://www.youtube.com/playlist?list=PLPE5bssIbSTnwU9lG7jdnuqzoKUKFbUGb",
|
106 |
"chill": "Here is a playlist for a chill vibe: https://www.youtube.com/playlist?list=PLPE5bssIbSTkjkb4FfYcaI3tVtfE3IrAx",
|
@@ -121,7 +121,7 @@ def query_model(question):
|
|
121 |
"""
|
122 |
youtube_playlist = get_youtube_playlist(question)
|
123 |
if youtube_playlist:
|
124 |
-
return f"Here is a link to
|
125 |
|
126 |
|
127 |
|
|
|
100 |
Check if the question contains a keyword and return the corresponding Youtube playlist link.
|
101 |
"""
|
102 |
keyword_links = {
|
103 |
+
"sad": "Sorry that you feel this way, I hope this playlist will comfort you: https://www.youtube.com/playlist?list=PLPE5bssIbSTm3odLzXrlfCXnmpll8pqBu",
|
104 |
"happy": "Get hyped with this energetic Youtube playlist this upbeat Youtube playlist for when you're feeling happy: https://www.youtube.com/playlist?list=PLPE5bssIbSTnsN_-gd3-2sgHxm7i4CSSS",
|
105 |
"mad":"Enjoy this energtic playlist when you are pressed:https://www.youtube.com/playlist?list=PLPE5bssIbSTnwU9lG7jdnuqzoKUKFbUGb",
|
106 |
"chill": "Here is a playlist for a chill vibe: https://www.youtube.com/playlist?list=PLPE5bssIbSTkjkb4FfYcaI3tVtfE3IrAx",
|
|
|
121 |
"""
|
122 |
youtube_playlist = get_youtube_playlist(question)
|
123 |
if youtube_playlist:
|
124 |
+
return f"Here is a link to a youtube song playlist based on how you are feeling! Just copy this link: {youtube_playlist}"
|
125 |
|
126 |
|
127 |
|