Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ from transformers_rec import (
|
|
20 |
|
21 |
|
22 |
# Helper methods
|
23 |
-
@st.cache(
|
24 |
def analyzer_engine(model_path: str):
|
25 |
"""Return AnalyzerEngine.
|
26 |
|
@@ -67,7 +67,7 @@ def analyzer_engine(model_path: str):
|
|
67 |
return analyzer
|
68 |
|
69 |
|
70 |
-
@st.cache(
|
71 |
def anonymizer_engine():
|
72 |
"""Return AnonymizerEngine."""
|
73 |
return AnonymizerEngine()
|
|
|
20 |
|
21 |
|
22 |
# Helper methods
|
23 |
+
@st.cache(allow_output_mutation = True)
|
24 |
def analyzer_engine(model_path: str):
|
25 |
"""Return AnalyzerEngine.
|
26 |
|
|
|
67 |
return analyzer
|
68 |
|
69 |
|
70 |
+
@st.cache(allow_output_mutation = True)
|
71 |
def anonymizer_engine():
|
72 |
"""Return AnonymizerEngine."""
|
73 |
return AnonymizerEngine()
|