File size: 457 Bytes
9231b52 7b925bc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from flask import Flask, render_template, Response, request, jsonify, send_from_directory
app = Flask(__name__)
@app.route('/')
def index():
return render_template('browser-detect.html')
@app.route('/exported')
def send_asl():
return send_from_directory("exported", "model.tflite")
@app.route('/word')
def send_word():
return send_from_directory("exported", "word.tflite")
if (__name__ == '__main__'):
app.run( host='0.0.0.0', port=7860) |