Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from transformers import AutoTokenizer
|
|
2 |
import gradio as gr
|
3 |
|
4 |
|
5 |
-
tokenizer = AutoTokenizer.from_pretrained("gpt2")
|
6 |
|
7 |
def tokenize(input_text):
|
8 |
tokens = tokenizer(input_text)["input_ids"]
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
|
5 |
+
tokenizer = AutoTokenizer.from_pretrained("kiranr/gpt2-tokenizer")
|
6 |
|
7 |
def tokenize(input_text):
|
8 |
tokens = tokenizer(input_text)["input_ids"]
|