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

Hi
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: https://pastebin.com/w56G4Sdh

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__':
    run()

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

Regards,
Amaan

2 Likes

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

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