haohsiang commited on
Commit
b3a1a2b
·
1 Parent(s): fde9245

update translate prompt

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -98,7 +98,7 @@ def chat_with_bot(input_text, history, conversation_times, valence_scores, arous
98
  return history, med_confirm_layout, jump2med_btn, conversation_times, valence_scores, arousal_scores, meditation_flag
99
 
100
  def translate_to_english(text):
101
- character = "You are a professional text-to-image prompt generator, please use the following text to generate prompt in English. It's very important to summarize it in 60 words. Details are not necessary."
102
  messages = [{"role":"system", "content":character},
103
  {"role": "user", "content": text}]
104
 
 
98
  return history, med_confirm_layout, jump2med_btn, conversation_times, valence_scores, arousal_scores, meditation_flag
99
 
100
  def translate_to_english(text):
101
+ character = "You are a professional text-to-image prompt generator, please use the following text to generate prompt in English. Make sure it has only 60 tokens. Details are not necessary."
102
  messages = [{"role":"system", "content":character},
103
  {"role": "user", "content": text}]
104