ki33elev commited on
Commit
c24d1f1
1 Parent(s): c4fdf30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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={transformers.AutoTokenizer: lambda _: None})
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'