File size: 1,323 Bytes
21699e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Transformers.js | real-time Nomic-Embed-v1.5</title>
  <script type="module" crossorigin src="/assets/index-DrEDm3et.js"></script>
  <link rel="stylesheet" crossorigin href="/assets/index-DDYN1ddX.css">
</head>

<body>
  <h1>
    Real-time zero-shot image classification (WebGPU)
  </h1>
  <h3>
    Runs <a href="https://huggingface.co/nomic-ai" target="_blank">Nomic-Embed-v1.5</a> locally in your browser w/
    <a href="https://github.com/xenova/transformers.js" target="_blank">🤗 Transformers.js</a>
  </h3>
  <div id="container">
    <video id="video" autoplay muted playsinline></video>
    <div id="overlay"></div>
  </div>
  <div id="controls">
    <div title="Labels used to perform zero-shot image classification">
      <label>Labels (comma-separated)</label>
      <br>
      <input id="labels" type="text" disabled>
    </div>
    <div title="Template used to perform zero-shot image classification">
      <label>Hypothesis template</label>
      <br>
      <input id="template" type="text" value="A photo of a {}" disabled>
    </div>
  </div>
  <label id="status">Loading model (538MB)...</label>


</body>

</html>