AnasAlokla commited on
Commit
4e7a35b
·
verified ·
1 Parent(s): 2ebe084

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 language and content\n" + topic
46
- prompt = prefix_prompt + prompt + subfix_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)