8Qero8 commited on
Commit
aaa92ad
·
verified ·
1 Parent(s): 45b38bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -64,7 +64,7 @@ def find_relevant_segment(user_query, segments):
64
 
65
  def generate_response(user_query, relevant_segment):
66
  """
67
- Generate a response emphasizing the bot's capability in providing playlist titles.
68
  """
69
  try:
70
  user_message = f"Here's a playlist name: {relevant_segment}"
@@ -99,7 +99,7 @@ def query_model(question):
99
  Process a question, find relevant information, and generate a response.
100
  """
101
  if question == "":
102
- return "Welcome to Fillira!"
103
  relevant_segment = find_relevant_segment(question, segments)
104
  if not relevant_segment:
105
  return "Hmmm, that doesn't seem to be in my database. I'm sorry!"
@@ -116,7 +116,7 @@ welcome_message = """
116
 
117
  topics = """
118
 
119
- Hey, it's Fillira! I'm here to help you create an amazing playlist! Just tell me what genre and artist is in it, I got you.
120
 
121
  """
122
 
 
64
 
65
  def generate_response(user_query, relevant_segment):
66
  """
67
+ Generate a response emphasizing the bot's friendliness and capability in providing playlist titles.
68
  """
69
  try:
70
  user_message = f"Here's a playlist name: {relevant_segment}"
 
99
  Process a question, find relevant information, and generate a response.
100
  """
101
  if question == "":
102
+ return "Hello, I'm Fillira!"
103
  relevant_segment = find_relevant_segment(question, segments)
104
  if not relevant_segment:
105
  return "Hmmm, that doesn't seem to be in my database. I'm sorry!"
 
116
 
117
  topics = """
118
 
119
+ Hey, it's Fillira! I'm here to help you create an amazing playlist title! Just tell me what genre or artist is in the playlist, and I'll do what I do best!
120
 
121
  """
122