Spaces:
Sleeping
Sleeping
kz209
commited on
Commit
•
2b167f5
1
Parent(s):
f654526
access gated repo
Browse files- utils/model.py +3 -0
utils/model.py
CHANGED
@@ -2,6 +2,9 @@ from transformers import AutoTokenizer
|
|
2 |
import transformers
|
3 |
import torch
|
4 |
|
|
|
|
|
|
|
5 |
class Model(torch.nn.Module):
|
6 |
number_of_models = 0
|
7 |
__model_list__ = [
|
|
|
2 |
import transformers
|
3 |
import torch
|
4 |
|
5 |
+
from huggingface_hub import login
|
6 |
+
login(token = 'HF_TOKEN')
|
7 |
+
|
8 |
class Model(torch.nn.Module):
|
9 |
number_of_models = 0
|
10 |
__model_list__ = [
|