ccloud0525
commited on
Commit
·
1669dbd
1
Parent(s):
aab688b
feat: first commit
Browse files- ts_generation_mixin.py +1 -1
ts_generation_mixin.py
CHANGED
|
@@ -9,7 +9,7 @@ from transformers.utils import ModelOutput
|
|
| 9 |
|
| 10 |
|
| 11 |
class TSGenerationMixin(GenerationMixin):
|
| 12 |
-
tokenizer = BertTokenizer.from_pretrained(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'bert_config'))
|
| 13 |
|
| 14 |
@torch.no_grad()
|
| 15 |
def generate(
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
class TSGenerationMixin(GenerationMixin):
|
| 12 |
+
tokenizer = BertTokenizer.from_pretrained(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'bert_config'), local_files_only=True)
|
| 13 |
|
| 14 |
@torch.no_grad()
|
| 15 |
def generate(
|