Spaces:
Running
Running
Cperkins14
commited on
Update app.py
Browse files
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
|
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
|
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
|
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 |
"""
|