Spaces:
Running
Running
Commit
·
5238772
1
Parent(s):
c7eddb5
Refactor classification prompt to limit categories to Transaction and OTP
Browse files
app.py
CHANGED
|
@@ -137,8 +137,7 @@ def write_message(data: dict, header: str = Header()):
|
|
| 137 |
prompt = """You are a smart assistant adept at classifying different messages. \
|
| 138 |
You will be penalized heavily for incorrect classification. \
|
| 139 |
Your task is to classify the message into one of the following categories: \
|
| 140 |
-
Transaction
|
| 141 |
-
Consider Salary Credit, Interest Credit, Redemptions as non-transactional messages.
|
| 142 |
Output the classification in a structured format like below. \
|
| 143 |
{"classification": "OTP"} \
|
| 144 |
"""
|
|
|
|
| 137 |
prompt = """You are a smart assistant adept at classifying different messages. \
|
| 138 |
You will be penalized heavily for incorrect classification. \
|
| 139 |
Your task is to classify the message into one of the following categories: \
|
| 140 |
+
Transaction or OTP. \
|
|
|
|
| 141 |
Output the classification in a structured format like below. \
|
| 142 |
{"classification": "OTP"} \
|
| 143 |
"""
|