jm12138 commited on
Commit
547611e
1 Parent(s): 0cc1203

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -38,6 +38,7 @@ def translate_language(text_prompts):
38
 
39
  def inference(text_prompts, style_indx):
40
  try:
 
41
  style = style_list[style_indx]
42
  results = model.generate_image(
43
  text_prompts=text_prompts, style=style, visualization=False)
38
 
39
  def inference(text_prompts, style_indx):
40
  try:
41
+ model.token = model._apply_token(model.ak, model.sk)
42
  style = style_list[style_indx]
43
  results = model.generate_image(
44
  text_prompts=text_prompts, style=style, visualization=False)