My streamlit project doesn't show any result in the browser after I run the '.py' file

I am beginner in using the streamlit module. I wanted to build an ML app using pycaret and wrote some code. But there is no output. Some one please help me.
the link to the code I wrote:

Hi Rajesh,

according to your code: You have only defined the functions, but you’re not executing them - if I see it correctly?

1 Like

Hi @Rajesh_Kumar1,

In your code, add this in the bottom:

if __name__ == '__main__':

The problem was that you never called the function run(). I hope this fixes it.
Cheers :+1:!



yes. Thank you for the suggestion. My code works now.

Yes. I fixed it now. Thank you for the reply.