Skip to content

Instantly share code, notes, and snippets.

@vicotrbb
Last active June 22, 2020 02:22
Show Gist options
  • Save vicotrbb/b0473af02b6877e07db527f666e188de to your computer and use it in GitHub Desktop.
Save vicotrbb/b0473af02b6877e07db527f666e188de to your computer and use it in GitHub Desktop.
# Imports
from flask import Flask, request
from . import image
# Flask app
app = Flask(__name__)
@app.route('/image-handler', methods=['POST'])
def handler():
return image.image_handler(image, methods)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=int("5000"), debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment