Spaces:
Build error
Build error
Исправлено хэширование.
Browse files
README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: ⚡
|
4 |
-
colorFrom:
|
5 |
colorTo: pink
|
6 |
sdk: streamlit
|
7 |
sdk_version: 1.2.0
|
|
|
1 |
---
|
2 |
+
title: TL;DR keywords
|
3 |
emoji: ⚡
|
4 |
+
colorFrom: purple
|
5 |
colorTo: pink
|
6 |
sdk: streamlit
|
7 |
sdk_version: 1.2.0
|
app.py
CHANGED
@@ -57,7 +57,7 @@ main_nlp = get_nlp(nlp_name)
|
|
57 |
|
58 |
# Получение модели.
|
59 |
|
60 |
-
@st.cache
|
61 |
def get_model_and_tokenizer(model_name):
|
62 |
model = AutoModel.from_pretrained(model_name)
|
63 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
57 |
|
58 |
# Получение модели.
|
59 |
|
60 |
+
@st.cache(hash_funcs={transformers.tokenizers.Tokenizer: lambda _: None})
|
61 |
def get_model_and_tokenizer(model_name):
|
62 |
model = AutoModel.from_pretrained(model_name)
|
63 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|