Huzaifa367 commited on
Commit
7cb6e9f
·
verified ·
1 Parent(s): 0c11816

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -89,8 +89,9 @@ def main():
89
  text_chunks = get_text_chunks(raw_text)
90
  get_vector_store(text_chunks, api_key)
91
  st.success("Processing Complete")
92
- if pdf_docs:
93
  with col1:
 
94
  user_question = st.text_input("Ask a question from the Docs")
95
  if user_question:
96
  user_input(user_question, api_key)
 
89
  text_chunks = get_text_chunks(raw_text)
90
  get_vector_store(text_chunks, api_key)
91
  st.success("Processing Complete")
92
+ if pdf_docs and col1.button("Submit"):
93
  with col1:
94
+ raw_text = get_pdf_text(pdf_docs)
95
  user_question = st.text_input("Ask a question from the Docs")
96
  if user_question:
97
  user_input(user_question, api_key)