Galuh Sahid commited on
Commit
6dd057c
1 Parent(s): 52b2b3c
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ MODELS = {
19
 
20
  headers = {}
21
 
22
- @st.cache(show_spinner=False, persist=True, hash_funcs={transformers.models.gpt2.modeling_gpt2.GPT2LMHeadModel: lambda _: None})
23
  def load_gpt(model_type):
24
  model = GPT2LMHeadModel.from_pretrained(MODELS[model_type])
25
 
 
19
 
20
  headers = {}
21
 
22
+ @st.cache(show_spinner=False, persist=True)
23
  def load_gpt(model_type):
24
  model = GPT2LMHeadModel.from_pretrained(MODELS[model_type])
25