Skip to content

Instantly share code, notes, and snippets.

@J3698
Created December 21, 2021 20:27
Show Gist options
  • Save J3698/6947473b5cc26292c0edc449b081d480 to your computer and use it in GitHub Desktop.
Save J3698/6947473b5cc26292c0edc449b081d480 to your computer and use it in GitHub Desktop.
from flask import Flask
from flask_cors import CORS, cross_origin
app = Flask(__name__)
cors = CORS(app)
app.config['CORS_HEADERS'] = 'Content-Type'
@app.route("/classify")
@cross_origin()
def classify_symbol():
return {"top5": ["A", "B", "C", "D", "E"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment