Spaces:
Sleeping
Sleeping
abdiharyadi
commited on
Commit
·
7a7870c
1
Parent(s):
9a0caf3
fix: resolve error after optimizing
Browse files
app.py
CHANGED
@@ -5,7 +5,6 @@ from indobenchmark import IndoNLGTokenizer
|
|
5 |
gpt_tokenizer = IndoNLGTokenizer.from_pretrained("indobenchmark/indogpt")
|
6 |
gpt_tokenizer.pad_token = gpt_tokenizer.eos_token
|
7 |
kancilgpt = GPT2LMHeadModel.from_pretrained("abdiharyadi/kancilgpt")
|
8 |
-
kancilgpt.to_bettertransformer()
|
9 |
|
10 |
def generate_story():
|
11 |
stop = False
|
|
|
5 |
gpt_tokenizer = IndoNLGTokenizer.from_pretrained("indobenchmark/indogpt")
|
6 |
gpt_tokenizer.pad_token = gpt_tokenizer.eos_token
|
7 |
kancilgpt = GPT2LMHeadModel.from_pretrained("abdiharyadi/kancilgpt")
|
|
|
8 |
|
9 |
def generate_story():
|
10 |
stop = False
|