Streamlit App not working when deployed

I made a streamlit app that uses the CoWIN API and works offline (locally) but when I published it, it stopped working and gives back an error while fetching.

Here is the link for the repo, mind you its still not complete and doesn’t have a README yet so any doubts please let me know.


This is the localhost


This is the deployed app

APP LINK: https://share.streamlit.io/nikhil0504/cct-app/main/app.py

Update: I deployed it to heroku but the problem is with the API as it only allows Indian servers. Is there any way I can use an Indian Server for the streamlit app?