Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoTokenizer
|
|
4 |
|
5 |
st.set_page_config(page_title="BigCode Tokenizer", page_icon='π©βπ»', layout="wide")
|
6 |
|
7 |
-
tokenizer = AutoTokenizer.from_pretrained('bigcode/tokenizer', subfolder="digit-
|
8 |
visualizer = EncodingVisualizer(tokenizer=tokenizer._tokenizer, default_to_notebook=False)
|
9 |
|
10 |
text = st.text_area(label="", placeholder="Text to tokenize")
|
|
|
4 |
|
5 |
st.set_page_config(page_title="BigCode Tokenizer", page_icon='π©βπ»', layout="wide")
|
6 |
|
7 |
+
tokenizer = AutoTokenizer.from_pretrained('bigcode/tokenizer', subfolder="digit-custom_punctuation-bytelevel-bpe-py-js-java-50k")
|
8 |
visualizer = EncodingVisualizer(tokenizer=tokenizer._tokenizer, default_to_notebook=False)
|
9 |
|
10 |
text = st.text_area(label="", placeholder="Text to tokenize")
|