Cannot open the url after successful deployment of streamlit in AWS EC2 instance

Hi, After Deploying the streamlit app, when I click on the button it is not directing to the webpage
Here is the code:

I also tried using webbrowser but still it doesn’t work

Hi @Santu_Mallugari, welcome to the Streamlit community!

Does this code work on your local computer? It looks like you might be trying to use some of the Jupyter display methods, which don’t necessarily correlate to Streamlit commands.


@randyzwitch Yes, when I run in my local computer it is working well