Spaces:
Runtime error
Runtime error
aronvandepol
commited on
Commit
•
87f8cbf
1
Parent(s):
5a96c7d
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import random
|
|
3 |
import os
|
4 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
5 |
|
6 |
-
auth_token = os.environ['TOKEN']
|
7 |
|
8 |
model = AutoModelForCausalLM.from_pretrained("aronvandepol/K-GPT125M", use_auth_token=auth_token)
|
9 |
|
|
|
3 |
import os
|
4 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
5 |
|
6 |
+
auth_token = os.environ['TOKEN'] or True
|
7 |
|
8 |
model = AutoModelForCausalLM.from_pretrained("aronvandepol/K-GPT125M", use_auth_token=auth_token)
|
9 |
|