object-detection-vue / index.html
Arsala Grey
initial commit
7e2f64e
raw
history blame
1.31 kB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Image Object Detection - HuggingFace.js Live Examples</title>
<link rel="stylesheet" href="/utils.css" />
<link rel="stylesheet" href="/pico.classless.min.css" />
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
<div id="generate-text-stream-app" class="container">
<h1>Detect Objects In Images</h1>
<label for="hf-token">Hugging Face Token</label>
<input id="hf-token" v-model="token" placeholder="HF-TOKEN" type="password" />
<label for="model-select">Select a model</label>
<select id="model-select" v-model="selectedModel" >
<option v-for="model in models" :value="model">
{{ model }}
</option>
</select>
<label for="current-image">Current Image</label>
<div class="image-container">
<img :src="imageUrl" id="current-image" />
</div>
<div class="grid grid-cols-2 gap-2">
<button class="btn-info" @click="shuffle">SHUFFLE</button>
<button class="btn-success" @click="run">DETECT OBJECTS</button>
</div>
<h2>Result</h2>
</div>
<script type="module" src="./index.js"></script>
</body>
</html>