from flask import Flask, render_template, request
from werkzeug import secure_filename
from emotion_predictor import emotion_predictor

app = Flask(__name__)

@app.route('/', methods=['GET', 'POST'])
def index():
    if request.method == 'GET':
        return render_template('home.html')
    
    else:
        im_file = request.files["myfile"]
        im_file.save(secure_filename(im_file.filename))
        #path = '/Users/emre/apps/capstone_app/old_images/' + im_file.filename
        emotion1,emotion2,emotion3 = emotion_predictor()
        
        return render_template('project.html', result1=emotion1, result2 = emotion2, 
                               result3 = emotion3, result4 = im_file.filename)

if __name__ == '__main__':
    app.run(debug=True)
50685e129b648504361a66ecc1d353c3e01e57a9
<mask token>


@app.route('/', methods=['GET', 'POST'])
def index():
    if request.method == 'GET':
        return render_template('home.html')
    else:
        im_file = request.files['myfile']
        im_file.save(secure_filename(im_file.filename))
        emotion1, emotion2, emotion3 = emotion_predictor()
        return render_template('project.html', result1=emotion1, result2=
            emotion2, result3=emotion3, result4=im_file.filename)


<mask token>

<mask token>


@app.route('/', methods=['GET', 'POST'])
def index():
    if request.method == 'GET':
        return render_template('home.html')
    else:
        im_file = request.files['myfile']
        im_file.save(secure_filename(im_file.filename))
        emotion1, emotion2, emotion3 = emotion_predictor()
        return render_template('project.html', result1=emotion1, result2=
            emotion2, result3=emotion3, result4=im_file.filename)


if __name__ == '__main__':
    app.run(debug=True)

<mask token>
app = Flask(__name__)


@app.route('/', methods=['GET', 'POST'])
def index():
    if request.method == 'GET':
        return render_template('home.html')
    else:
        im_file = request.files['myfile']
        im_file.save(secure_filename(im_file.filename))
        emotion1, emotion2, emotion3 = emotion_predictor()
        return render_template('project.html', result1=emotion1, result2=
            emotion2, result3=emotion3, result4=im_file.filename)


if __name__ == '__main__':
    app.run(debug=True)

from flask import Flask, render_template, request
from werkzeug import secure_filename
from emotion_predictor import emotion_predictor
app = Flask(__name__)


@app.route('/', methods=['GET', 'POST'])
def index():
    if request.method == 'GET':
        return render_template('home.html')
    else:
        im_file = request.files['myfile']
        im_file.save(secure_filename(im_file.filename))
        emotion1, emotion2, emotion3 = emotion_predictor()
        return render_template('project.html', result1=emotion1, result2=
            emotion2, result3=emotion3, result4=im_file.filename)


if __name__ == '__main__':
    app.run(debug=True)

from flask import Flask, render_template, request
from werkzeug import secure_filename
from emotion_predictor import emotion_predictor

app = Flask(__name__)

@app.route('/', methods=['GET', 'POST'])
def index():
    if request.method == 'GET':
        return render_template('home.html')
    
    else:
        im_file = request.files["myfile"]
        im_file.save(secure_filename(im_file.filename))
        #path = '/Users/emre/apps/capstone_app/old_images/' + im_file.filename
        emotion1,emotion2,emotion3 = emotion_predictor()
        
        return render_template('project.html', result1=emotion1, result2 = emotion2, 
                               result3 = emotion3, result4 = im_file.filename)

if __name__ == '__main__':
    app.run(debug=True)