demo_fastai_2 / index.html
espejelomar's picture
Update index.html
8545382
raw
history blame
1.49 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Cat or Dog predictor</title>
<link rel="stylesheet" href="https://unpkg.com/mvp.css">
</head>
<body>
<a href="https://github.com/nuvic/predict_image"><img loading="lazy" width="149" height="149" src="https://github.blog/wp-content/uploads/2008/12/forkme_left_green_007200.png?resize=149%2C149" class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1"></a>
<header>
<h1>Predict a dog or cat from an image</h1>
<p>Model provided by <a href="https://github.com/fastai/fastai">fastai</a> and api hosted by <a href="https://hf.space/embed/jph00/testing/api" target="_blank">hugging face</a>
</p>
<a href="https://github.com/nuvic/predict_image" target="_blank">Github Repo</a>
</header>
<main>
<header>
<h2>Submit a picture of either a cat or dog</h2>
<p id="prediction"></p>
<p id="error"></p>
</header>
<section>
<img id="myImage" height="400" width="400">
<form id="form">
<label for="fileInput"></label>
<input id="fileInput" type="file" onchange="onFileSelected(event)" name="File">
</form>
</section>
</main>
<script src="index.js"></script>
</body>
</html>