Huzaifa367 commited on
Commit
e94def3
·
verified ·
1 Parent(s): f574d39

Update pages/summarizer.py

Browse files
Files changed (1) hide show
  1. pages/summarizer.py +2 -13
pages/summarizer.py CHANGED
@@ -42,19 +42,8 @@ def main():
42
  # Display summary text
43
  st.text_area("Summary", value=summary_text)
44
 
45
- with st.sidebar:
46
-
47
- st.header("Chat with PDF")
48
- # st.title("Menu:")
49
- pdf_docs = st.file_uploader("Upload your PDF Files and Click on the Submit Button", accept_multiple_files=True, type=["pdf"])
50
- if st.button("Submit"):
51
- with st.spinner("Processing..."):
52
- raw_text = get_pdf_text(pdf_docs)
53
- text_chunks = get_text_chunks(raw_text)
54
- get_vector_store(text_chunks, api_key)
55
- st.success("Done")
56
-
57
- if st.button("Chat Summarizer"):
58
  st.switch_page('app.py')
59
  # Check if any document is uploaded
60
  if pdf_docs:
 
42
  # Display summary text
43
  st.text_area("Summary", value=summary_text)
44
 
45
+ with st.sidebar:
46
+ if st.button("Chat With PDF"):
 
 
 
 
 
 
 
 
 
 
 
47
  st.switch_page('app.py')
48
  # Check if any document is uploaded
49
  if pdf_docs: