Spaces:
Running
Running
Update app.py
Browse files
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={
|
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 |
|