Spaces:
Sleeping
Sleeping
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
|
64 |
"""
|
65 |
try:
|
66 |
-
system_message = "You are
|
67 |
-
user_message = f"Here's the information on
|
68 |
messages = [
|
69 |
{"role": "system", "content": system_message},
|
70 |
{"role": "user", "content": user_message}
|
|
|
60 |
|
61 |
def generate_response(user_query, relevant_segment):
|
62 |
"""
|
63 |
+
Generate a response emphasizing the bot's ability to give advice about how to have a fulfilling personal life.
|
64 |
"""
|
65 |
try:
|
66 |
+
system_message = "You are advice chatbot specialized in listening to problems, and providing information about finding hobbies, social opportunities, and extracurricular interests for the user."
|
67 |
+
user_message = f"Here's the information on hobbies: {relevant_segment}"
|
68 |
messages = [
|
69 |
{"role": "system", "content": system_message},
|
70 |
{"role": "user", "content": user_message}
|