vanessbut commited on
Commit
4cb3a18
1 Parent(s): 5a2137f

Исправлено хэширование.

Browse files
Files changed (2) hide show
  1. README.md +2 -2
  2. app.py +1 -1
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
- title: Tldr_keywords
3
  emoji: ⚡
4
- colorFrom: gray
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)