Cperkins14 commited on
Commit
7c06ebf
·
verified ·
1 Parent(s): 5638501

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -60,11 +60,11 @@ def find_relevant_segment(user_query, segments):
60
 
61
  def generate_response(user_query, relevant_segment):
62
  """
63
- Generate a response emphasizing the bot's capability in providing chess information.
64
  """
65
  try:
66
  system_message = "You are a study chatbot specialized in providing information on helping students create healthy and effective study habits."
67
- user_message = f"Here's the information on chess: {relevant_segment}"
68
  messages = [
69
  {"role": "system", "content": system_message},
70
  {"role": "user", "content": user_message}
@@ -97,7 +97,7 @@ def query_model(question):
97
 
98
  # Define the welcome message and specific topics the chatbot can provide information about
99
  welcome_message = """
100
- # ♟️ Welcome to ChessBot!
101
 
102
  ## Your AI-driven assistant for all study-related queries.
103
  """
 
60
 
61
  def generate_response(user_query, relevant_segment):
62
  """
63
+ Generate a response emphasizing the bot's capability in providing study information.
64
  """
65
  try:
66
  system_message = "You are a study chatbot specialized in providing information on helping students create healthy and effective study habits."
67
+ user_message = f"Here's the information on studying: {relevant_segment}"
68
  messages = [
69
  {"role": "system", "content": system_message},
70
  {"role": "user", "content": user_message}
 
97
 
98
  # Define the welcome message and specific topics the chatbot can provide information about
99
  welcome_message = """
100
+ # ♟️ Welcome to StudyBot!
101
 
102
  ## Your AI-driven assistant for all study-related queries.
103
  """