chenjian commited on
Commit
03aa3f4
1 Parent(s): e2fc917
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -14,6 +14,7 @@ def inference(text_prompts, language_indx, style_indx):
14
  if language_indx != 0:
15
  language = language_list[language_indx]
16
  text_prompts = language_model.translate(text_prompts, language, 'zh')
 
17
  results = model.generate_image(
18
  text_prompts=text_prompts, style=style, visualization=False)
19
  return 'Success', results[:6]
 
14
  if language_indx != 0:
15
  language = language_list[language_indx]
16
  text_prompts = language_model.translate(text_prompts, language, 'zh')
17
+ print(text_prompts)
18
  results = model.generate_image(
19
  text_prompts=text_prompts, style=style, visualization=False)
20
  return 'Success', results[:6]