tensorkelechi commited on
Commit
796e2a8
·
verified ·
1 Parent(s): 70f1d8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- doc_retriever = get_retriever(course_material)
94
- st.success("File loading successful, vector db initialize")
 
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