Update app.py
Browse files
app.py
CHANGED
@@ -227,6 +227,10 @@ def page_1():
|
|
227 |
"<p style='color: Black; font-weight: bold;'>Extracting content from PDF...</p>",
|
228 |
unsafe_allow_html=True
|
229 |
)
|
|
|
|
|
|
|
|
|
230 |
# Simulate processing function
|
231 |
time.sleep(1) # Simulate final step
|
232 |
st.success("PDF processed successfully! Collections saved to session state.")
|
|
|
227 |
"<p style='color: Black; font-weight: bold;'>Extracting content from PDF...</p>",
|
228 |
unsafe_allow_html=True
|
229 |
)
|
230 |
+
image_collection, text_collection, video_collection = process_pdf(pdf_path)
|
231 |
+
st.session_state.image_collection = image_collection
|
232 |
+
st.session_state.text_collection = text_collection
|
233 |
+
st.session_state.video_collection = video_collection
|
234 |
# Simulate processing function
|
235 |
time.sleep(1) # Simulate final step
|
236 |
st.success("PDF processed successfully! Collections saved to session state.")
|