vives commited on
Commit
4d020be
·
1 Parent(s): 8428c07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ import pickle
7
  import numpy as np
8
  import itertools
9
 
10
- @st.cache(hash_funcs={AutoTokenizer: 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"))
 
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"))