catastropiyush commited on
Commit
d788dc5
·
verified ·
1 Parent(s): b405455

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -86,10 +86,10 @@ with st.sidebar:
86
  with st.spinner("Loading..."):
87
  filepath = "data/saved_pdf.pdf"
88
  with open(filepath, "wb") as f:
89
- f.write(uploaded_file.getbuffer())
90
- displayPDF(filepath)
91
  data_ingestion() # Process PDF every time new file is uploaded
92
  st.success("PDF is ready!")
 
93
 
94
  user_prompt = st.chat_input("Ask me anything about the content of the PDF:")
95
  if user_prompt:
 
86
  with st.spinner("Loading..."):
87
  filepath = "data/saved_pdf.pdf"
88
  with open(filepath, "wb") as f:
89
+ f.write(uploaded_file.getbuffer())
 
90
  data_ingestion() # Process PDF every time new file is uploaded
91
  st.success("PDF is ready!")
92
+ displayPDF(filepath)
93
 
94
  user_prompt = st.chat_input("Ask me anything about the content of the PDF:")
95
  if user_prompt: