Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Commit
•
cff4dd7
1
Parent(s):
0ee6b9d
Update app.py
Browse files
app.py
CHANGED
@@ -78,12 +78,12 @@ def main():
|
|
78 |
if query:
|
79 |
user_call(query)
|
80 |
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
|
|
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")
|