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