Spaces:
Sleeping
Sleeping
Commit ·
44e5a43
1
Parent(s): 2c9a929
refactor link to read json
Browse files
app.py
CHANGED
|
@@ -114,7 +114,7 @@ def main():
|
|
| 114 |
|
| 115 |
if st.button("Fetch Courses"):
|
| 116 |
st.info("Fetching courses please wait...")
|
| 117 |
-
courses_texts = read_json_data("
|
| 118 |
documents = get_documents(courses_texts)
|
| 119 |
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
| 120 |
db = Chroma.from_documents(documents, embeddings)
|
|
|
|
| 114 |
|
| 115 |
if st.button("Fetch Courses"):
|
| 116 |
st.info("Fetching courses please wait...")
|
| 117 |
+
courses_texts = read_json_data("course_data.json")
|
| 118 |
documents = get_documents(courses_texts)
|
| 119 |
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
| 120 |
db = Chroma.from_documents(documents, embeddings)
|