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 capability in providing
|
64 |
"""
|
65 |
try:
|
66 |
-
system_message = "You are
|
67 |
-
user_message = f"Here's
|
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 capability in providing workout ideas.
|
64 |
"""
|
65 |
try:
|
66 |
+
system_message = "You are an exercise chatbot specialized in providing information on exercises and strengthening."
|
67 |
+
user_message = f"Here's my suggestion: {relevant_segment}"
|
68 |
messages = [
|
69 |
{"role": "system", "content": system_message},
|
70 |
{"role": "user", "content": user_message}
|