Spaces:
Sleeping
Sleeping
update translate prompt
Browse files
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.
|
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 |
|