Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import streamlit as st
|
2 |
import torch
|
3 |
import transformers
|
|
|
4 |
|
5 |
-
@st.cache(suppress_st_warning=True, hash_funcs={
|
6 |
def load_model():
|
7 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
8 |
model_name = 'distilbert-base-cased'
|
|
|
1 |
import streamlit as st
|
2 |
import torch
|
3 |
import transformers
|
4 |
+
import tokenizers
|
5 |
|
6 |
+
@st.cache(suppress_st_warning=True, hash_funcs={tokenizers.Tokenizer: lambda _: None})
|
7 |
def load_model():
|
8 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
9 |
model_name = 'distilbert-base-cased'
|