Your code won’t work because it’s executed on the server at Heroku. It does not have access to your local c: drive.
But… There is a file uploader widget in progress. You can read more there Upload Files to Streamlit App. In that thread there is also a description of temporary solution using the Droopy file upload server.
Marc