JingyeChen commited on
Commit
b3b16a3
1 Parent(s): 586de43
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -214,7 +214,7 @@ def text_to_image(prompt,keywords,radio,slider_step,slider_guidance,slider_batch
214
  user_prompt = prompt
215
 
216
  if slider_natural:
217
- user_prompt = f'<|startoftext|> {user_prompt} <|endoftext|>'
218
  composed_prompt = user_prompt
219
  prompt = tokenizer.encode(user_prompt)
220
  else:
 
214
  user_prompt = prompt
215
 
216
  if slider_natural:
217
+ user_prompt = f'{user_prompt}'
218
  composed_prompt = user_prompt
219
  prompt = tokenizer.encode(user_prompt)
220
  else: