![]() ![]() It is always the same files that fail to display, and they are actually found, as the name appears under the file browser (in the Sidebar in my case). FileNotFoundError: No such file or directory: 'Hidcote Map.pdf'*.File "/Users/timkendal/Desktop/Python Projects/Streamlit_testing/pdf_reader.py", line 15, in *.File "/Users/timkendal/Desktop/Python Projects/Streamlit_testing/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script*.With some files I get a File Not Found error & no display. # st.markdown(pdf_display, unsafe_allow_html=True) St.markdown(pdf_display, unsafe_allow_html=True) St.sidebar.write("Only one file at a time!") Image = st.sidebar.file_uploader("Please browse for a pdf file") The code I’m using is: import streamlit as st I’m using pdf display code I found in the forum to do this. ![]() This works some of the time & displays the PDF. I’ve created a simple Streamlit PDF reader app, using the file_uploader. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |