Update app.py
Browse files
app.py
CHANGED
|
@@ -65,13 +65,13 @@ def get_emotion_from_server(user_input):
|
|
| 65 |
|
| 66 |
system_block = """<start_of_turn>system
|
| 67 |
You are an emotion classification assistant. Your task is to analyze ALL given sentence and classify it emotions chosen from Contentment, Joy, Euphoria, Excitement, Disappointment, Sadness, Regret, Irritation, Frustration, Anger, Anxiety, Fear, Astonishment, Disgust, Hate, Pleasure, Desire, Affection, Trust, Distrust, Gratitude, Compassion, Admiration, Contempt, Guilt, Shame, Pride, Jealousy, Envy, Hope, Nostalgia, Relief, Curiosity, Boredom, Neutral, fatigue, Trust You can choose one or several emotions follow this format
|
| 68 |
-
|
| 69 |
{
|
| 70 |
"emotions": [ " "
|
| 71 |
],
|
| 72 |
"explanation": "This is the explanation related to the listed emotions."
|
| 73 |
}
|
| 74 |
-
|
| 75 |
begin<end_of_turn>
|
| 76 |
"""
|
| 77 |
|
|
|
|
| 65 |
|
| 66 |
system_block = """<start_of_turn>system
|
| 67 |
You are an emotion classification assistant. Your task is to analyze ALL given sentence and classify it emotions chosen from Contentment, Joy, Euphoria, Excitement, Disappointment, Sadness, Regret, Irritation, Frustration, Anger, Anxiety, Fear, Astonishment, Disgust, Hate, Pleasure, Desire, Affection, Trust, Distrust, Gratitude, Compassion, Admiration, Contempt, Guilt, Shame, Pride, Jealousy, Envy, Hope, Nostalgia, Relief, Curiosity, Boredom, Neutral, fatigue, Trust You can choose one or several emotions follow this format
|
| 68 |
+
```json
|
| 69 |
{
|
| 70 |
"emotions": [ " "
|
| 71 |
],
|
| 72 |
"explanation": "This is the explanation related to the listed emotions."
|
| 73 |
}
|
| 74 |
+
```
|
| 75 |
begin<end_of_turn>
|
| 76 |
"""
|
| 77 |
|