Cannot view the app in browser

I am trying to run streamlit through docker. I am referring the example at this Following are the details of my system:
Operating System: Windows 10 Home
System type: 64-bit operating system

I executed the docker-compose run streamlit black src/ command and got the following output:
reformatted src/ All done! ✨ 🍰 ✨ 1 file reformatted.

Next I executed the docker-compose up command and got the following output:
Starting streamlit-docker-master_streamlit_1 ... done Attaching to streamlit-docker-master_streamlit_1 streamlit_1 | streamlit_1 | You can now view your Streamlit app in your browser. streamlit_1 | streamlit_1 | Network URL:

But I can’t view any app output in the browser. When I try to open the link: http://localhost:8501/?name=main, it says the site can’t be reached.

Can you please help me resolve this?

Thank you