Main.py in production - issue with getting responses in when using website but not localhost

I was able to get my plugin running with localhost, however I am having issues getting a reponse from one of my methods once I upload to my site. My question is, do we need to host the main.py on a third party application like heroku or google cloud? currently my main.py is simply hosted on github.

For more context, I am hosting my files on github and deployed with netifly, getting an error like this when running from site If this is your site, and you weren’t expecting a 404 for this path, please visit Netlify’s