How would I do this? I used conda list -e > requirements.txt to retrieve the list of installed packages in my conda environment. However, I am using PyCharm, and there is an External Libraries folder inside my project. Could this be exporting unneeded packages into requirements.txt?
Look at your code and figure out what are the things you actually import. Other than streamlit (which Streamlit Cloud installs by default, or any library that is a Python built-in like base64 or math, list out what those are, one per line (making sure you use the variation of the name for pip install).