Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -90,8 +90,9 @@ course_material = st.file_uploader("or Upload your own pdf", type="pdf")
|
|
90 |
|
91 |
if st.session_state != "":
|
92 |
try:
|
93 |
-
|
94 |
-
|
|
|
95 |
except:
|
96 |
st.error("Upload your file")
|
97 |
|
|
|
90 |
|
91 |
if st.session_state != "":
|
92 |
try:
|
93 |
+
if st.button("load"):
|
94 |
+
doc_retriever = get_retriever(course_material)
|
95 |
+
st.success("File loading successful, vector db initialize")
|
96 |
except:
|
97 |
st.error("Upload your file")
|
98 |
|