blazingbunny commited on
Commit
14753e0
·
1 Parent(s): 6fea9ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ model_radio_button = st.sidebar.radio(
33
  - paraphrase-MiniLM-L3-v2 - Best Performance (💨)"""
34
  )
35
 
36
- @st.cache(allow_output_mutation=True)
37
  def get_model():
38
  model = SentenceTransformer(model_radio_button)
39
  return model
@@ -328,7 +328,7 @@ if finish == True:
328
  visualize_autocomplete(df_autocomplete_full)
329
 
330
 
331
- @st.cache_data
332
  def fetch_data():
333
  # Code to fetch data
334
  # Replace this with your actual logic to fetch the data
 
33
  - paraphrase-MiniLM-L3-v2 - Best Performance (💨)"""
34
  )
35
 
36
+ @st.cache_resource(allow_output_mutation=True)
37
  def get_model():
38
  model = SentenceTransformer(model_radio_button)
39
  return model
 
328
  visualize_autocomplete(df_autocomplete_full)
329
 
330
 
331
+ @st.cache_resource_data
332
  def fetch_data():
333
  # Code to fetch data
334
  # Replace this with your actual logic to fetch the data