Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,8 +42,8 @@ def create_prompt(emotion, topic=None):
|
|
42 |
subfix_prompt = "Make the generated text in the same language as the topic.\n"
|
43 |
subfix_prompt += "Make the generated text short.\n"
|
44 |
|
45 |
-
prefix_prompt = "## topic
|
46 |
-
prompt =
|
47 |
return prompt
|
48 |
|
49 |
# 1. Emotion Detection Model (Using Hugging Face's transformer)
|
|
|
42 |
subfix_prompt = "Make the generated text in the same language as the topic.\n"
|
43 |
subfix_prompt += "Make the generated text short.\n"
|
44 |
|
45 |
+
prefix_prompt = "## topic\n" + topic
|
46 |
+
prompt = subfix_prompt + prompt + prefix_prompt
|
47 |
return prompt
|
48 |
|
49 |
# 1. Emotion Detection Model (Using Hugging Face's transformer)
|