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

update prompts

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 70 tokens."
102
  messages = [{"role":"system", "content":character},
103
  {"role": "user", "content": text}]
104
 
@@ -125,7 +125,7 @@ def generate_images(history, conversation_times, last_genimg_times, generated_im
125
  last_genimg_times = conversation_times
126
 
127
  for i in range(4):
128
- img = pipe("modern digital impressionism, style of Milton Glaser, hard to understood, abstract, "+prompt,
129
  negative_prompt=neg_prompt,
130
  height=720, width=512,
131
  generator=generator[i],
 
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
 
 
125
  last_genimg_times = conversation_times
126
 
127
  for i in range(4):
128
+ img = pipe("modern digital impressionism, style of Milton Glaser, grunge painting, palette knife, hard to understood, "+prompt,
129
  negative_prompt=neg_prompt,
130
  height=720, width=512,
131
  generator=generator[i],