Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -137,7 +137,8 @@ class TextGeneration:
|
|
137 |
|
138 |
|
139 |
#@st.cache(hash_funcs={torch.nn.parameter.Parameter: lambda _: None})
|
140 |
-
|
|
|
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()
|