4rtemi5 commited on
Commit
1efaea6
1 Parent(s): 92dc785

specify hash function

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
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={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