I have the same issue. My app:
https://github.com/artemgur/MachineLearning2/blob/master/Task1(security_threats)/main.py
Hello Everyone!
Anyone that’s facing this issue above should have this file name “streamlit_app.py” in their repo, like you have to rename the file name of file you want to deploy to “streamlit_app.py”.
Until I did that, I was able to deploy my file to Streamlit.
NB: This is my first time of deploying to Streamlit