Spaces:
Sleeping
Sleeping
Web App Minor Adjustments
#5
by
LittleKnife - opened
- app/user.py +2 -2
- app/utils.py +1 -0
app/user.py
CHANGED
|
@@ -420,7 +420,7 @@ class User:
|
|
| 420 |
def add_recent_wins(self, wins, context = None):
|
| 421 |
prompt = f"""
|
| 422 |
## Role
|
| 423 |
-
You are an expert in writing achievement message and progress notification. Your task is to use the user's achievement and context to formulate a short
|
| 424 |
|
| 425 |
```json
|
| 426 |
{{
|
|
@@ -437,7 +437,7 @@ class User:
|
|
| 437 |
Output:
|
| 438 |
```
|
| 439 |
{{
|
| 440 |
-
achievement_message: You
|
| 441 |
}}
|
| 442 |
```
|
| 443 |
|
|
|
|
| 420 |
def add_recent_wins(self, wins, context = None):
|
| 421 |
prompt = f"""
|
| 422 |
## Role
|
| 423 |
+
You are an expert in writing achievement message and progress notification. Your task is to use the user's achievement and context to formulate a short achievement message/progress notification. The output must be a one sentence short message (less than 15 words) in this JSON output schema:
|
| 424 |
|
| 425 |
```json
|
| 426 |
{{
|
|
|
|
| 437 |
Output:
|
| 438 |
```
|
| 439 |
{{
|
| 440 |
+
achievement_message: You have completed a 10k run!
|
| 441 |
}}
|
| 442 |
```
|
| 443 |
|
app/utils.py
CHANGED
|
@@ -888,6 +888,7 @@ def get_user_life_status(user_id):
|
|
| 888 |
1. **Mantra of the Week:**
|
| 889 |
- Create a very short encouragement quote that encapsulates the user's journey toward achieving their goals.
|
| 890 |
- The mantra **MUST** be a single sentence with fewer than 5 words.
|
|
|
|
| 891 |
|
| 892 |
**Output Format:**
|
| 893 |
|
|
|
|
| 888 |
1. **Mantra of the Week:**
|
| 889 |
- Create a very short encouragement quote that encapsulates the user's journey toward achieving their goals.
|
| 890 |
- The mantra **MUST** be a single sentence with fewer than 5 words.
|
| 891 |
+
- Do **NOT** call the user's name in the mantra!
|
| 892 |
|
| 893 |
**Output Format:**
|
| 894 |
|