{% extends "base.html" %} {% block title %}Vgg Input Upload {% endblock %} {% block imports %} {% endblock %} {% block content %}

Input Image for VGG19

{% csrf_token %}
{% endblock %} {% block scripts %} FilePond.registerPlugin( FilePondPluginImagePreview, FilePondPluginFileValidateType, ); FilePond.setOptions({ imagePreviewHeight : 650, acceptedFileTypes: ['image/*'], server: { url: 'http://127.0.0.1:8000/fp', process: '/process/', patch: '/patch/', revert: '/revert/', fetch: '/fetch/?target=', load: '/load/?id=' } }); window.pond = FilePond.create( document.querySelector('input[type="file"]') , { maxFiles: 1, } ); {% if messages %} {% for message in messages %} $('body') .toast({ class: "error", title: "Error uploading FIle", displayTime: 5000, closeIcon: true, position: "top center", showIcon: "exclamation", message: "{{ message }}", }); {% endfor %} {% endif %} {% endblock %}