ki33elev commited on
Commit
0fbdf0a
1 Parent(s): 6a12a2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def load_model():
13
  model.eval()
14
  return tokenizer, model
15
 
16
- @st.cache(suppress_st_warning=True)
17
  def predict(title, summary, tokenizer, model):
18
  text = title + "\n" + summary
19
  tokens = tokenizer.encode(text)
 
13
  model.eval()
14
  return tokenizer, model
15
 
16
+ @st.cache(suppress_st_warning=True, hash_funcs={tokenizers.Tokenizer: lambda _: None})
17
  def predict(title, summary, tokenizer, model):
18
  text = title + "\n" + summary
19
  tokens = tokenizer.encode(text)