Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Commit
•
8929888
1
Parent(s):
cff4dd7
Update app.py
Browse files
app.py
CHANGED
@@ -79,10 +79,11 @@ def main():
|
|
79 |
user_call(query)
|
80 |
|
81 |
|
82 |
-
st.
|
83 |
-
|
84 |
-
|
85 |
-
|
|
|
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)
|