Chandranshu Jain commited on
Commit
98ee1c8
1 Parent(s): 53afb19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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)