Commit ·
14753e0
1
Parent(s): 6fea9ce
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ model_radio_button = st.sidebar.radio(
|
|
| 33 |
- paraphrase-MiniLM-L3-v2 - Best Performance (💨)"""
|
| 34 |
)
|
| 35 |
|
| 36 |
-
@st.
|
| 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.
|
| 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
|