Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def load_model(model_name):
|
|
59 |
tokenizer = AutoTokenizer.from_pretrained(
|
60 |
model_path,
|
61 |
padding_side='left',
|
62 |
-
|
63 |
trust_remote_code=True
|
64 |
)
|
65 |
|
@@ -70,7 +70,7 @@ def load_model(model_name):
|
|
70 |
|
71 |
model = AutoModelForCausalLM.from_pretrained(
|
72 |
model_path,
|
73 |
-
|
74 |
trust_remote_code=True
|
75 |
)
|
76 |
|
|
|
59 |
tokenizer = AutoTokenizer.from_pretrained(
|
60 |
model_path,
|
61 |
padding_side='left',
|
62 |
+
token=hugging_face_token,
|
63 |
trust_remote_code=True
|
64 |
)
|
65 |
|
|
|
70 |
|
71 |
model = AutoModelForCausalLM.from_pretrained(
|
72 |
model_path,
|
73 |
+
token=hugging_face_token,
|
74 |
trust_remote_code=True
|
75 |
)
|
76 |
|