Commit
·
4b8fd00
1
Parent(s):
83221fb
Update Climate_site/python_scripts/functions_contest.py
Browse files
Climate_site/python_scripts/functions_contest.py
CHANGED
|
@@ -17,7 +17,7 @@ def model_nlp():
|
|
| 17 |
model = SentenceTransformer('all-mpnet-base-v2')
|
| 18 |
return model
|
| 19 |
|
| 20 |
-
|
| 21 |
def load_data():
|
| 22 |
url = path + "big_ideas_contest.tsv"
|
| 23 |
dic = pd.read_csv(url, delimiter = "\t" , index_col = 0).to_dict('index')
|
|
|
|
| 17 |
model = SentenceTransformer('all-mpnet-base-v2')
|
| 18 |
return model
|
| 19 |
|
| 20 |
+
@st.cache_data
|
| 21 |
def load_data():
|
| 22 |
url = path + "big_ideas_contest.tsv"
|
| 23 |
dic = pd.read_csv(url, delimiter = "\t" , index_col = 0).to_dict('index')
|