Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,11 +25,14 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
25 |
return_dict=True,
|
26 |
torch_dtype=torch.float16,
|
27 |
revision="main", # Or the desired revision
|
|
|
28 |
)
|
29 |
|
30 |
tokenizer = AutoTokenizer.from_pretrained(
|
31 |
model_name,
|
32 |
-
revision="main",
|
|
|
|
|
33 |
)
|
34 |
|
35 |
print("loaded model")
|
|
|
25 |
return_dict=True,
|
26 |
torch_dtype=torch.float16,
|
27 |
revision="main", # Or the desired revision
|
28 |
+
token=api_token
|
29 |
)
|
30 |
|
31 |
tokenizer = AutoTokenizer.from_pretrained(
|
32 |
model_name,
|
33 |
+
revision="main",
|
34 |
+
token=api_token
|
35 |
+
# Or the desired revision
|
36 |
)
|
37 |
|
38 |
print("loaded model")
|