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

Update app.py

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