blazingbunny commited on
Commit
29034fd
·
1 Parent(s): 14753e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -33,10 +33,12 @@ model_radio_button = st.sidebar.radio(
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
 
 
40
 
41
  model = get_model()
42
 
@@ -328,7 +330,7 @@ if finish == True:
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
 
33
  - paraphrase-MiniLM-L3-v2 - Best Performance (💨)"""
34
  )
35
 
36
+ @st.cache_data(allow_output_mutation=True)
37
+ def fetch_data():
38
+ # Code to fetch data
39
+ return data
40
+
41
+
42
 
43
  model = get_model()
44
 
 
330
  visualize_autocomplete(df_autocomplete_full)
331
 
332
 
333
+ @st.cache_data
334
  def fetch_data():
335
  # Code to fetch data
336
  # Replace this with your actual logic to fetch the data