Xenova HF staff commited on
Commit
21699e5
1 Parent(s): 8995de3

Upload 3 files

Browse files
assets/index-DDYN1ddX.css ADDED
@@ -0,0 +1 @@
 
 
1
+ *{box-sizing:border-box;padding:0;margin:0;font-family:sans-serif}html,body{height:100%}body{padding:16px 32px}body,#container{display:flex;flex-direction:column;justify-content:center;align-items:center}#controls{display:flex;padding:1rem;gap:1rem}#controls>div{text-align:center}h1,h3{text-align:center}h3{margin-top:.5rem}#container{position:relative;width:720px;height:405px;max-width:100%;max-height:100%;border:2px dashed #D1D5DB;border-radius:.75rem;overflow:hidden;margin-top:1rem;background-size:100% 100%;background-position:center;background-repeat:no-repeat}#status{min-height:16px;margin:8px 0}video{width:100%;height:100%}input[type=text]{padding:.25rem .5rem;border:1px solid #D1D5DB;border-radius:.25rem;margin-top:2px}input[type=range]{margin-top:6px}#overlay{position:absolute;top:0;left:0;background-color:#ffffffe6;font-size:1.25rem;border-radius:2px}#overlay:not(:empty){padding:.5rem}
assets/index-DrEDm3et.js ADDED
The diff for this file is too large to render. See raw diff
 
index.html CHANGED
@@ -1,19 +1,40 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Transformers.js | real-time Nomic-Embed-v1.5</title>
8
+ <script type="module" crossorigin src="/assets/index-DrEDm3et.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-DDYN1ddX.css">
10
+ </head>
11
+
12
+ <body>
13
+ <h1>
14
+ Real-time zero-shot image classification (WebGPU)
15
+ </h1>
16
+ <h3>
17
+ Runs <a href="https://huggingface.co/nomic-ai" target="_blank">Nomic-Embed-v1.5</a> locally in your browser w/
18
+ <a href="https://github.com/xenova/transformers.js" target="_blank">🤗 Transformers.js</a>
19
+ </h3>
20
+ <div id="container">
21
+ <video id="video" autoplay muted playsinline></video>
22
+ <div id="overlay"></div>
23
+ </div>
24
+ <div id="controls">
25
+ <div title="Labels used to perform zero-shot image classification">
26
+ <label>Labels (comma-separated)</label>
27
+ <br>
28
+ <input id="labels" type="text" disabled>
29
+ </div>
30
+ <div title="Template used to perform zero-shot image classification">
31
+ <label>Hypothesis template</label>
32
+ <br>
33
+ <input id="template" type="text" value="A photo of a {}" disabled>
34
+ </div>
35
+ </div>
36
+ <label id="status">Loading model (538MB)...</label>
37
+
38
+ </body>
39
+
40
+ </html>