Removing the space in the file name fixed the error for me. I went from 'Topic Chunking' to 'Chunking'. Streamlit was able to run the file after its change.