Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|