Huzaifa367 commited on
Commit
39f1c72
·
verified ·
1 Parent(s): 574d29a

Update pages/summarizer.py

Browse files
Files changed (1) hide show
  1. pages/summarizer.py +4 -2
pages/summarizer.py CHANGED
@@ -83,7 +83,7 @@ def main():
83
  st.set_page_config(layout="centered")
84
 
85
  with st.sidebar:
86
- st.switch_page('app.py')
87
  st.header("Chat with PDF")
88
  # st.title("Menu:")
89
  pdf_docs = st.file_uploader("Upload your PDF Files and Click on the Submit Button", accept_multiple_files=True, type=["pdf"])
@@ -93,7 +93,9 @@ def main():
93
  text_chunks = get_text_chunks(raw_text)
94
  get_vector_store(text_chunks, api_key)
95
  st.success("Done")
96
-
 
 
97
  # Check if any document is uploaded
98
  if pdf_docs:
99
  user_question = st.text_input("Ask a question from the Docs")
 
83
  st.set_page_config(layout="centered")
84
 
85
  with st.sidebar:
86
+
87
  st.header("Chat with PDF")
88
  # st.title("Menu:")
89
  pdf_docs = st.file_uploader("Upload your PDF Files and Click on the Submit Button", accept_multiple_files=True, type=["pdf"])
 
93
  text_chunks = get_text_chunks(raw_text)
94
  get_vector_store(text_chunks, api_key)
95
  st.success("Done")
96
+
97
+ if st.button("Chat Summarizer"):
98
+ st.switch_page('app.py')
99
  # Check if any document is uploaded
100
  if pdf_docs:
101
  user_question = st.text_input("Ask a question from the Docs")