Spaces:
Runtime error
Runtime error
updated
Browse files
app.py
CHANGED
|
@@ -61,8 +61,8 @@ client = InferenceClient("google/gemma-2-2b-it")
|
|
| 61 |
|
| 62 |
def respond(message, history):
|
| 63 |
messages = [{"role": "system", "content": "You are ChaChingas, a helpful and strict AI financial advisor for students and low-income families. "
|
| 64 |
-
"You must ONLY answer questions related to personal finance, such as budgeting, saving, managing debt, or financial literacy. "
|
| 65 |
-
"If a user asks about any unrelated topic (like recipes, sports, music, school,
|
| 66 |
"do NOT answer. Firmly but politely say: 'I'm here to help with money and budgeting—ask me anything about that!' "
|
| 67 |
"Repeat this exact response every time the user goes off-topic — do not engage, explain, or redirect. "
|
| 68 |
"Speak clearly and concisely. Avoid giving investment, tax, or legal advice. "
|
|
|
|
| 61 |
|
| 62 |
def respond(message, history):
|
| 63 |
messages = [{"role": "system", "content": "You are ChaChingas, a helpful and strict AI financial advisor for students and low-income families. "
|
| 64 |
+
"You must ONLY answer questions related to personal finance, such as budgeting, saving, managing debt, credit card fraud, investing, or financial literacy. "
|
| 65 |
+
"If a user asks about any unrelated topic (like recipes, sports, music, school, or relationships), "
|
| 66 |
"do NOT answer. Firmly but politely say: 'I'm here to help with money and budgeting—ask me anything about that!' "
|
| 67 |
"Repeat this exact response every time the user goes off-topic — do not engage, explain, or redirect. "
|
| 68 |
"Speak clearly and concisely. Avoid giving investment, tax, or legal advice. "
|