Hi,
I am trying to deploy my Flask webapp on Vercel, but I am having problems with deployment. Everything runs fine locally. I am a rookie and making this kind of project for the first time, so I am not entirely sure what to override in vercel.json and under what configuration category my project falls under.
My html page loads, but whenever I click any of the buttons that run the backend functions, there are error 404s on the fetch requests.
This is my file structure

This is my vercel.json
{ "version": 2, "builds": [ { "src": "api/*.py", "use": "@vercel/python" }, { "src": "api/static/index.html", "use": "@vercel/static" } ], "routes": [ { "src": "/", "dest": "/api/static/index.html" }, { "src": "/api/(.*)", "dest": "/api/app.py" }, { "src": "/(.*)", "dest": "/api/app.py" } ]}These are the routes defined in my app.py:

I appreciate any help. Thanks a lot!
.....
here is my file structure
....
also here is the
.....
I thought the requirements.txt code would also help anyone solve my error
Flask==3.0.3
yt-dlp==2024.7.12
gunicorn==20.1.0
....
here is the vercel deployment page
