Spaces:
Runtime error
Runtime error
updates
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import time
|
|
5 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
6 |
import paddlehub as hub
|
7 |
|
8 |
-
|
9 |
model = hub.Module(name='ernie_vilg')
|
10 |
|
11 |
def get_ernie_vilg(text_prompts, style):
|
|
|
5 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
6 |
import paddlehub as hub
|
7 |
|
8 |
+
HF_TOKEN = os.environ["HF_TOKEN"]
|
9 |
model = hub.Module(name='ernie_vilg')
|
10 |
|
11 |
def get_ernie_vilg(text_prompts, style):
|