IvaElen commited on
Commit
89033e0
1 Parent(s): 49cf90e

Update pages/GPT.py

Browse files
Files changed (1) hide show
  1. pages/GPT.py +1 -1
pages/GPT.py CHANGED
@@ -5,7 +5,7 @@ import transformers
5
  import random
6
  import textwrap
7
 
8
- # @st.cache
9
  def load_model():
10
  model_finetuned = transformers.AutoModelWithLMHead.from_pretrained(
11
  'tinkoff-ai/ruDialoGPT-small',
 
5
  import random
6
  import textwrap
7
 
8
+ @st.cache_data
9
  def load_model():
10
  model_finetuned = transformers.AutoModelWithLMHead.from_pretrained(
11
  'tinkoff-ai/ruDialoGPT-small',