Update app.py
Browse filesupdated links and changed wordings
app.py
CHANGED
|
@@ -40,7 +40,7 @@ import pandas as pd
|
|
| 40 |
|
| 41 |
@st.cache
|
| 42 |
def load_embeddings():
|
| 43 |
-
url = "https://drive.google.com/uc?export=download&id=
|
| 44 |
output = "embeddings.npy"
|
| 45 |
gdown.download(url, output, quiet=False)
|
| 46 |
|
|
@@ -49,7 +49,7 @@ def load_embeddings():
|
|
| 49 |
|
| 50 |
@st.cache
|
| 51 |
def load_data():
|
| 52 |
-
url = "https://drive.google.com/uc?export=download&id=1-
|
| 53 |
output = "passages.jsonl"
|
| 54 |
gdown.download(url, output, quiet=False)
|
| 55 |
|
|
@@ -59,9 +59,9 @@ def load_data():
|
|
| 59 |
return df
|
| 60 |
|
| 61 |
|
| 62 |
-
st.title('Related
|
| 63 |
|
| 64 |
-
st.write('This project is a work-in-progress that searches the abstracts of recently-published articles
|
| 65 |
|
| 66 |
|
| 67 |
with st.spinner(text="Loading data..."):
|
|
|
|
| 40 |
|
| 41 |
@st.cache
|
| 42 |
def load_embeddings():
|
| 43 |
+
url = "https://drive.google.com/uc?export=download&id=1-3onsoN6FG6xqL7mplK0_zv8_yFQr_Aa"
|
| 44 |
output = "embeddings.npy"
|
| 45 |
gdown.download(url, output, quiet=False)
|
| 46 |
|
|
|
|
| 49 |
|
| 50 |
@st.cache
|
| 51 |
def load_data():
|
| 52 |
+
url = "https://drive.google.com/uc?export=download&id=1-7LOACnXQ0OIUq-X0o3Lf0oCari4jjOO"
|
| 53 |
output = "passages.jsonl"
|
| 54 |
gdown.download(url, output, quiet=False)
|
| 55 |
|
|
|
|
| 59 |
return df
|
| 60 |
|
| 61 |
|
| 62 |
+
st.title('Related Sociology Articles')
|
| 63 |
|
| 64 |
+
st.write('This project is a work-in-progress that searches the abstracts of recently-published sociology articles and retrieves the most abstracts.')
|
| 65 |
|
| 66 |
|
| 67 |
with st.spinner(text="Loading data..."):
|