@Arindam Bhattacharjee Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.
You can follow this blog post steps to configure custom startup in python app service. I understand that your app is hosted on B1, and it is taking longer time to load and service the requests.
As you application needs heavy package like torch and OpenAI-whisper try scaling out the app service plan to standard or premium which come with more CPU, storage and memory when compared to basic plans which can help in reducing the container runtime.
Hope this helps, let me know if you have any further questions on this.