Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|