Adjusted Prompt
Browse files
app.py
CHANGED
|
@@ -128,6 +128,7 @@ def explain(req: ExplainRequest):
|
|
| 128 |
|
| 129 |
# Updated system prompt with bullet-point format and language adaptation
|
| 130 |
system_prompt = (
|
|
|
|
| 131 |
f"You are a robot that identifies phishing and safe messages. "
|
| 132 |
f"The message was classified as '{label}'. "
|
| 133 |
"Explain why this decision was made and point out any words or patterns that led to it. "
|
|
@@ -137,7 +138,6 @@ def explain(req: ExplainRequest):
|
|
| 137 |
"Limit each bullet to 1–2 sentences. "
|
| 138 |
"Limit the number of bullets to 3-4. "
|
| 139 |
f"Message:\n\n{user_message}\n\n"
|
| 140 |
-
"Respond using the same language as the message."
|
| 141 |
)
|
| 142 |
|
| 143 |
headers = {
|
|
|
|
| 128 |
|
| 129 |
# Updated system prompt with bullet-point format and language adaptation
|
| 130 |
system_prompt = (
|
| 131 |
+
"Respond using the same language as the message."
|
| 132 |
f"You are a robot that identifies phishing and safe messages. "
|
| 133 |
f"The message was classified as '{label}'. "
|
| 134 |
"Explain why this decision was made and point out any words or patterns that led to it. "
|
|
|
|
| 138 |
"Limit each bullet to 1–2 sentences. "
|
| 139 |
"Limit the number of bullets to 3-4. "
|
| 140 |
f"Message:\n\n{user_message}\n\n"
|
|
|
|
| 141 |
)
|
| 142 |
|
| 143 |
headers = {
|