from flask import Flask, render_template from flask_cors import CORS # Import CORS app = Flask(__name__) # Enable CORS for the entire app CORS(app) @app.route('/') def home(): return render_template('image.html') if __name__ == "__main__": app.run(debug=True)