jmyint commited on
Commit
d53f1f5
·
verified ·
1 Parent(s): 5f3c536

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 artist reccomendations.
68
  """
69
  try:
70
  user_message = f"Here's your reccomendations: {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 ChessBot! Ask me anything about chess rules, strategies, and terminology."
103
  relevant_segment = find_relevant_segment(question, segments)
104
  if not relevant_segment:
105
  return "Could not find specific information. Please refine your question."
 
64
 
65
  def generate_response(user_query, relevant_segment):
66
  """
67
+ Generate a response emphasizing the bot's capability in providing artist reccomendations based on users' moods.
68
  """
69
  try:
70
  user_message = f"Here's your reccomendations: {relevant_segment}"
 
99
  Process a question, find relevant information, and generate a response.
100
  """
101
  if question == "":
102
+ return "Welcome, my name is Harmony! How are you feeling today?"
103
  relevant_segment = find_relevant_segment(question, segments)
104
  if not relevant_segment:
105
  return "Could not find specific information. Please refine your question."