dxvina-08 commited on
Commit
5a2adf0
·
verified ·
1 Parent(s): 3bc7666

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -117,6 +117,11 @@ def query_model(question):
117
  """
118
  Process a question, find relevant information, and generate a response.
119
  """
 
 
 
 
 
120
  if question == "":
121
  return "Welcome to Mental Music Bot! Ask me anything about music recommendations!"
122
  relevant_segment = find_relevant_segment(question, segments)
 
117
  """
118
  Process a question, find relevant information, and generate a response.
119
  """
120
+
121
+ youtube_playlist = get_youtube_playlist(question)
122
+ if youtube_playlist:
123
+ return f"Here is a link to the youtube playlist for more recs! Just copy this link: {youtube_playlist}"
124
+
125
  if question == "":
126
  return "Welcome to Mental Music Bot! Ask me anything about music recommendations!"
127
  relevant_segment = find_relevant_segment(question, segments)