<!doctype html>
<title>Python Flask File Upload Example</title>
<h2>Select a file to upload</h2>
<p>
	{% with messages = get_flashed_messages() %}
	  {% if messages %}
		<ul>
		{% for message in messages %}
		  <li>{{ message }}</li>
		{% endfor %}
		</ul>
	  {% endif %}
	{% endwith %}
</p>
{% if filename %}
	<div>
        <figure>
		    <img src="{{ url_for('display_image', filename=filename) }}">
            <figcaption>This vegetable belongs to class {{caption}}</figcaption>
        </figure>
	</div>
{% 