<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Flask API</title> | |
<!-- 304 status codes indicate that the files are being cached by the browser. There is no error or issue to be concerned about in this case.--> | |
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" /> | |
<script type="module" src="{{ url_for('static', filename='script.js') }}"></script> | |
</head> | |
<body> | |
<main> | |
<section id="text-gen"> | |
<h1>🤗 Image Classification of MNIST digits 🤗</h1> | |
<p> | |
Model: | |
<a | |
href="https://huggingface.co/1vash/mnist_demo_model" | |
rel="noreferrer" | |
target="_blank" | |
>1vash/mnist_demo_model</a | |
> | |
</p> | |
<form class="image-upload-form" action="/predict" method="POST" enctype="multipart/form-data"> | |
<label for="image-upload-input">Upload an image:</label> | |
<input id="image-upload-input" type="file" accept="image/*" name="image" /> | |
<button id="image-upload-submit">Upload</button> | |
</form> | |
</section> | |
</main> | |
</body> | |
</html> |