arogeriogel commited on
Commit
acbaf11
1 Parent(s): 8ceb5c1

update to streamlit version in hf

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -25,7 +25,8 @@ logging.basicConfig(format="\n%(asctime)s\n%(message)s", level=logging.INFO, for
25
  ###### Define functions ######
26
  ##############################
27
 
28
- @st.cache_resource(show_spinner="Fetching model from cache...")
 
29
  def analyzer_engine():
30
  """Return AnalyzerEngine."""
31
  analyzer = AnalyzerEngine()
@@ -175,7 +176,8 @@ def allow_manual_input():
175
  )
176
  st.session_state.analyze_results = analyze_results_fltered
177
 
178
- @st.cache_resource(show_spinner="Fetching model from cache...")
 
179
  def anonymizer_engine():
180
  """Return AnonymizerEngine."""
181
  return AnonymizerEngine()
 
25
  ###### Define functions ######
26
  ##############################
27
 
28
+ # @st.cache_resource(show_spinner="Fetching model from cache...")
29
+ @st.cache(allow_output_mutation=True)
30
  def analyzer_engine():
31
  """Return AnalyzerEngine."""
32
  analyzer = AnalyzerEngine()
 
176
  )
177
  st.session_state.analyze_results = analyze_results_fltered
178
 
179
+ # @st.cache_resource(show_spinner="Fetching model from cache...")
180
+ @st.cache(allow_output_mutation=True)
181
  def anonymizer_engine():
182
  """Return AnonymizerEngine."""
183
  return AnonymizerEngine()