Commit ·
29034fd
1
Parent(s): 14753e0
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,10 +33,12 @@ model_radio_button = st.sidebar.radio(
|
|
| 33 |
- paraphrase-MiniLM-L3-v2 - Best Performance (💨)"""
|
| 34 |
)
|
| 35 |
|
| 36 |
-
@st.
|
| 37 |
-
def
|
| 38 |
-
|
| 39 |
-
return
|
|
|
|
|
|
|
| 40 |
|
| 41 |
model = get_model()
|
| 42 |
|
|
@@ -328,7 +330,7 @@ if finish == True:
|
|
| 328 |
visualize_autocomplete(df_autocomplete_full)
|
| 329 |
|
| 330 |
|
| 331 |
-
@st.
|
| 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
|