Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -114,8 +114,8 @@ STYLE = """
|
|
114 |
from transformers import GPT2Tokenizer, AutoModelForCausalLM, AutoTokenizer
|
115 |
import numpy as np
|
116 |
|
117 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
118 |
-
model = AutoModelForCausalLM.from_pretrained("
|
119 |
tokenizer.pad_token_id = tokenizer.eos_token_id
|
120 |
print("Loading finished.")
|
121 |
def generate_html(token, node):
|
|
|
114 |
from transformers import GPT2Tokenizer, AutoModelForCausalLM, AutoTokenizer
|
115 |
import numpy as np
|
116 |
|
117 |
+
tokenizer = AutoTokenizer.from_pretrained("gpt2")
|
118 |
+
model = AutoModelForCausalLM.from_pretrained("gpt2")
|
119 |
tokenizer.pad_token_id = tokenizer.eos_token_id
|
120 |
print("Loading finished.")
|
121 |
def generate_html(token, node):
|