Flask, How can I response the picture on the page
<p>I am new to Flask and web development, I want to upload a picture and process it by my deep learning application and then response the processed picture on the page, here is my frame work code</p>

<pre><code># coding: utf-8
import os
import uuid

import PIL.Image as Image
from werkzeug import secure_filename
from flask import Flask, url_for, render_template, request, url_for, redirect, send_from_directory


ALLOWED_EXTENSIONS = set(list(['png', 'jpg', 'jpeg']))
UPLOAD_FOLDER = '/tmp'
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER


def process_image(file_path):
    """
    resize image to 32x32
    :param file_path: file path
    :return:
    """
    img = Image.open(file_path, mode='r')
    return img.resize([32,32], Image.ANTIALIAS)


def allowed_file(filename):
    return '.' in filename and filename.rsplit('.', 1)[1] in ALLOWED_EXTENSIONS


@app.route('/', methods=['GET', 'POST'])
def upload_file():
    _path = None
    if request.method == 'POST':
        _file = request.files['file']
        print(_file)
        if _file and allowed_file(_file.filename):
            filename = secure_filename(_file.filename)
            _path = os.path.join(app.config['UPLOAD_FOLDER'], filename)
            _file.save(_path)
            return show_pic(deep_learning(_path))

    return '''
            &lt;!DOCTYPE html&gt;
            &lt;title&gt;Web App/title&gt;
            &lt;h1&gt;Deep Learning Web App&lt;/h1&gt;
            &lt;form action="/" method="POST" enctype="multipart/form-data"&gt;
            &lt;input type="file" name="file" /&gt;
            &lt;input type="submit" value="submit" /&gt;
            &lt;/form&gt;
            '''


@app.route('/uploads/&lt;filename&gt;')
def uploaded_file(filename):
    return send_from_directory(app.config['UPLOAD_FOLDER'], filename)

if __name__ == '__main__':
    app.run()
</code></pre>

<p>As you can see it, I have implemented upload picture function and the function <code>deep_learning(path)</code>, and it return the path of processed picture, I need to implement function <code>show_pic()</code>, how can I do that?</p>