Issue with dependencies for poetry lock file and streamlit cloud

Reading files in Streamlit Cloud is no different than any other Python; the issue you are referencing is quite common due to a bad relative reference. The usual recommendation is to use pathlib to use Python to locate the file, as demonstrated in this post:

Best,
Randy