Spaces:
Runtime error
Runtime error
Commit
·
fb46b33
1
Parent(s):
455ebe4
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def generate_response(user_prompt):
|
|
13 |
system_msg = 'You are a helpful assistant.'
|
14 |
|
15 |
# Define the user message
|
16 |
-
|
17 |
physical activity, sleep, nutrition and preventive care. Make sure you just reply with response in json format "category":"[sleep,nutrition]".
|
18 |
Note that single question may belong to multiple categories. Dont add any opening lines just reply with json response.
|
19 |
Question: {user_prompt}'''
|
|
|
13 |
system_msg = 'You are a helpful assistant.'
|
14 |
|
15 |
# Define the user message
|
16 |
+
prompt= f'''I will give you a question and you detect which category does this question belong to. It should be from these categories -
|
17 |
physical activity, sleep, nutrition and preventive care. Make sure you just reply with response in json format "category":"[sleep,nutrition]".
|
18 |
Note that single question may belong to multiple categories. Dont add any opening lines just reply with json response.
|
19 |
Question: {user_prompt}'''
|