Spaces:
Sleeping
Sleeping
Update src/app.py
Browse files- src/app.py +2 -1
src/app.py
CHANGED
|
@@ -66,7 +66,8 @@ process = st.sidebar.button("Submit")
|
|
| 66 |
|
| 67 |
if process:
|
| 68 |
if uploaded_file is not None:
|
| 69 |
-
|
|
|
|
| 70 |
else:
|
| 71 |
st.warning("Please upload a PDF file.")
|
| 72 |
|
|
|
|
| 66 |
|
| 67 |
if process:
|
| 68 |
if uploaded_file is not None:
|
| 69 |
+
file_bytes = uploaded_file.read()
|
| 70 |
+
process_pdf(file_bytes)
|
| 71 |
else:
|
| 72 |
st.warning("Please upload a PDF file.")
|
| 73 |
|