'Application Error while deploying fastapi uvicorn

I had a machine learning fast API/uvicorn app which I am deploying in the azure app service through azure DevOps.

Every time I deploy its deploys without any error but still I am getting this message enter image description here

I thought the problem is in not using uvicorn and added it but still I am getting the same problem. I tried deploying Heroku and it's working perfectly fine. I have tried installing uvicorn and followed from the answer here but nothing seems to work. Please help me I don't know where I am doing wrong

enter image description here enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source