Update app.py
Browse files
app.py
CHANGED
@@ -56,6 +56,9 @@ def main():
|
|
56 |
if st.button('Show PDF'):
|
57 |
st.session_state.pdf_path = pdf_path
|
58 |
|
|
|
|
|
|
|
59 |
if "pdf_path" in st.session_state:
|
60 |
pdf_path = st.session_state.pdf_path
|
61 |
display_pdf(pdf_path)
|
|
|
56 |
if st.button('Show PDF'):
|
57 |
st.session_state.pdf_path = pdf_path
|
58 |
|
59 |
+
if st.download_button(label="Download PDF", data=open(pdf_path, 'rb').read(), file_name=pdf_path.split("/")[-1]):
|
60 |
+
pass
|
61 |
+
|
62 |
if "pdf_path" in st.session_state:
|
63 |
pdf_path = st.session_state.pdf_path
|
64 |
display_pdf(pdf_path)
|