Created
December 21, 2021 20:27
-
-
Save J3698/6947473b5cc26292c0edc449b081d480 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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