I'm trying to deploy my Flask App which also uses a ML model into Vercel and I'm getting this error "A Serverless Function has exceeded the unzipped maximum size of 250 MB" everytime. Is there any solution for this and how to know which directory or file causing the issue ?
vercel.json
{ "version": 2, "builds": [{ "src": "app.py", "use": "@vercel/python" }], "routes": [{ "src": "/(.*)", "dest": "app.py" }] }
requirements.txt
Flask flask-cors pandas numpy scikit-learn joblib nltk python-dotenv pymongo requests bcrypt pyjwt gunicorn
I tried using Render for my deployment and it is also showing same issue and I tried optimizing my ML model as much as I can but it still not working. I'm expecting a fix for my problem or why this issue keep coming even though I'm making changes.