Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import pickle
|
|
7 |
import numpy as np
|
8 |
import itertools
|
9 |
|
10 |
-
@st.cache(hash_funcs={
|
11 |
def load_bert():
|
12 |
return (AutoModelForMaskedLM.from_pretrained("vives/distilbert-base-uncased-finetuned-cvent-2019_2022", output_hidden_states=True),
|
13 |
AutoTokenizer.from_pretrained("vives/distilbert-base-uncased-finetuned-cvent-2019_2022"))
|
|
|
7 |
import numpy as np
|
8 |
import itertools
|
9 |
|
10 |
+
@st.cache(hash_funcs={tokenizers.Tokenizer: lambda _: None, AutoModelForMaskedLM:lambda _: None})
|
11 |
def load_bert():
|
12 |
return (AutoModelForMaskedLM.from_pretrained("vives/distilbert-base-uncased-finetuned-cvent-2019_2022", output_hidden_states=True),
|
13 |
AutoTokenizer.from_pretrained("vives/distilbert-base-uncased-finetuned-cvent-2019_2022"))
|