Error: Streamlit requires raw Python (.py) files

every time I try to run streamlit this error shows up and I don’t know how to fix it. can somebody help?
this is the code I run in the terminal : “streamlit run C:/Users/user/Desktop/Stock project/”

I think the path is the problem, just try it with:
streamlit run

… or quote the path alone.