versae commited on
Commit
7b5b0a1
1 Parent(s): f8c1bd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -137,7 +137,8 @@ class TextGeneration:
137
 
138
 
139
  #@st.cache(hash_funcs={torch.nn.parameter.Parameter: lambda _: None})
140
- @st.cache(allow_output_mutation=True)
 
141
  def load_text_generator():
142
  text_generator = TextGeneration()
143
  text_generator.load()
 
137
 
138
 
139
  #@st.cache(hash_funcs={torch.nn.parameter.Parameter: lambda _: None})
140
+ #@st.cache(allow_output_mutation=True)
141
+ @st.cache(allow_output_mutation=True, hash_funcs={TextGeneration: lambda _: None})
142
  def load_text_generator():
143
  text_generator = TextGeneration()
144
  text_generator.load()