seal345 commited on
Commit
f79ae2f
1 Parent(s): ba4407f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ def return_pred_name(names, ind):
33
  out.append(names[i])
34
  return out
35
 
36
- @st.cache(suppress_st_warning=True, hash_funcs={tokenizers.Tokenizer: lambda _: None})
37
  def predict(title, summary, model, tokenizer):
38
  text = title + '.' + summary
39
  tokens = tokenizer.encode(text)
 
33
  out.append(names[i])
34
  return out
35
 
36
+
37
  def predict(title, summary, model, tokenizer):
38
  text = title + '.' + summary
39
  tokens = tokenizer.encode(text)