Spaces:
Sleeping
Sleeping
catastropiyush
commited on
Update app.py
Browse files
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:
|