Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ from datasets import load_dataset
|
|
13 |
@st.cache_data
|
14 |
def read_data(dataset_repo='dhmeltzer/ELI5_embedded'):
|
15 |
"""Read the data from huggingface."""
|
16 |
-
return load_dataset(dataset_repo)
|
17 |
|
18 |
@st.cache_data
|
19 |
def load_faiss_index(path_to_faiss="./faiss_index.pickle"):
|
|
|
13 |
@st.cache_data
|
14 |
def read_data(dataset_repo='dhmeltzer/ELI5_embedded'):
|
15 |
"""Read the data from huggingface."""
|
16 |
+
return load_dataset(dataset_repo)['train']
|
17 |
|
18 |
@st.cache_data
|
19 |
def load_faiss_index(path_to_faiss="./faiss_index.pickle"):
|