4rtemi5 commited on
Commit
57ebcb4
1 Parent(s): 1efaea6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def get_model():
25
  return FlaxHybridCLIP.from_pretrained("clip-italian/clip-italian")
26
 
27
 
28
- @st.cache(hash_funcs={tokenizers.Tokenizer: hash})
29
  def get_tokenizer():
30
  return AutoTokenizer.from_pretrained("dbmdz/bert-base-italian-xxl-uncased", cache_dir=None, use_fast=True)
31
 
 
25
  return FlaxHybridCLIP.from_pretrained("clip-italian/clip-italian")
26
 
27
 
28
+ @st.cache(hash_funcs={transformers.models.bert.tokenization_bert_fast.BertTokenizerFast: hash})
29
  def get_tokenizer():
30
  return AutoTokenizer.from_pretrained("dbmdz/bert-base-italian-xxl-uncased", cache_dir=None, use_fast=True)
31