Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,10 +100,7 @@ with st.sidebar:
|
|
| 100 |
raw_text = get_pdf(pdf_docs)
|
| 101 |
text_chunks = text_splitter(raw_text)
|
| 102 |
|
| 103 |
-
query = st.chat_input("Ask a Question from the PDF File")
|
| 104 |
-
if st.button("Submit & Process", key="process_button"):
|
| 105 |
-
#with st.spinner("Processing..."):
|
| 106 |
-
|
| 107 |
if query:
|
| 108 |
#st.session_state.messages.append({'role': 'user', "content": query})
|
| 109 |
response = embedding(text_chunks,query)
|
|
|
|
| 100 |
raw_text = get_pdf(pdf_docs)
|
| 101 |
text_chunks = text_splitter(raw_text)
|
| 102 |
|
| 103 |
+
query = st.chat_input("Ask a Question from the PDF File")
|
|
|
|
|
|
|
|
|
|
| 104 |
if query:
|
| 105 |
#st.session_state.messages.append({'role': 'user', "content": query})
|
| 106 |
response = embedding(text_chunks,query)
|