justheuristic commited on
Commit
bf6d44e
1 Parent(s): 24b075b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
2
  import transformers
3
 
4
 
5
- @st.cache
6
  def load_stuff():
7
  model = transformers.AutoModelForCausalLM.from_pretrained("distilgpt2")
8
  tokenizer = transformers.AutoTokenizer.from_pretrained("distilgpt2")
 
2
  import transformers
3
 
4
 
5
+ # @st.cache(hash_funcs={tokenizers.Tokenizer: id, tokenizers.Tokenizer: id})
6
  def load_stuff():
7
  model = transformers.AutoModelForCausalLM.from_pretrained("distilgpt2")
8
  tokenizer = transformers.AutoTokenizer.from_pretrained("distilgpt2")