最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Is there any solution for vercel deployment error "A Serverless Function has exceeded the unzipped maximum siz

programmeradmin1浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论