my-flask-app/
├── app.py # main Flask application file
├── requirements.txt # Python dependencies
├── templates/ # Directory for HTML template
│ └── index.html
├── static/ # for style.css, images and audio files
This application is already deployed at “https://calculo-intereses.onrender.com/” and it is fuctionning as expected.
There is no .gitignore folder at Github. For running on localhost, I start running the command python app.py. The app imports the following libraries:
from flask import Flask, request, render_template, session, jsonify, flash, g, redirect, url_for, send_file
import pandas as pd
from datetime import datetime
import logging
import os
import sqlite3
from io import BytesIO
I see that the project structure is not compatible with Vercel’s serverless function requirements.
I’d recommend you to checkout the examples/python/flask3 at main · vercel/examples · GitHub repository and compare your structure as well as code to see what can be issue.