Chandranshu Jain commited on
Commit
cff4dd7
1 Parent(s): 0ee6b9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -78,12 +78,12 @@ def main():
78
  if query:
79
  user_call(query)
80
 
81
- with st.sidebar:
82
- st.title("Menu:")
83
- pdf_docs = st.file_uploader("Upload your PDF Files and Click on the Submit & Process Button", accept_multiple_files=True, key="pdf_uploader")
84
- if st.button("Submit & Process", key="process_button"):
85
- with st.spinner("Processing..."):
86
- raw_text = get_pdf(pdf_docs)
87
- text_chunks = text_splitter(raw_text)
88
- embedding(text_chunks)
89
- st.success("Done")
 
78
  if query:
79
  user_call(query)
80
 
81
+
82
+ st.title("Menu:")
83
+ pdf_docs = st.file_uploader("Upload your PDF Files and Click on the Submit & Process Button", accept_multiple_files=True, key="pdf_uploader")
84
+ if st.button("Submit & Process", key="process_button"):
85
+ with st.spinner("Processing..."):
86
+ raw_text = get_pdf(pdf_docs)
87
+ text_chunks = text_splitter(raw_text)
88
+ embedding(text_chunks)
89
+ st.success("Done")