Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Commit
•
def6987
1
Parent(s):
42c7411
Update app.py
Browse files
app.py
CHANGED
@@ -100,12 +100,9 @@ with st.sidebar:
|
|
100 |
|
101 |
query = st.text_input("Ask a Question from the PDF File", key="query")
|
102 |
if st.button("Submit & Process", key="process_button"):
|
103 |
-
with st.spinner("Processing..."):
|
104 |
-
|
105 |
-
|
106 |
-
if query:
|
107 |
-
embedding(text_chunks,query)
|
108 |
-
st.success("Done")
|
109 |
if query:
|
110 |
st.session_state.messages.append({'role': 'user', "content": query})
|
111 |
response = embedding(text_chunks,query)
|
|
|
100 |
|
101 |
query = st.text_input("Ask a Question from the PDF File", key="query")
|
102 |
if st.button("Submit & Process", key="process_button"):
|
103 |
+
#with st.spinner("Processing..."):
|
104 |
+
raw_text = get_pdf(pdf_docs)
|
105 |
+
text_chunks = text_splitter(raw_text)
|
|
|
|
|
|
|
106 |
if query:
|
107 |
st.session_state.messages.append({'role': 'user', "content": query})
|
108 |
response = embedding(text_chunks,query)
|