Spaces:
Running
Running
Update index.html
Browse files- index.html +14 -2
index.html
CHANGED
@@ -4,17 +4,29 @@
|
|
4 |
<meta charset="UTF-8" />
|
5 |
<title>Orpheus‑3B ONNX on Hugging Face Spaces</title>
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7 |
-
<!--
|
8 |
<script type="module" src="https://cdn.jsdelivr.net/npm/@xenova/transformers@2.17.2/dist/transformers.min.js"></script>
|
9 |
<link rel="stylesheet" href="style.css" />
|
10 |
</head>
|
11 |
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
<div class="container">
|
13 |
<h1>Orpheus‑3B Text Generation</h1>
|
14 |
<textarea id="input-text" placeholder="Enter your prompt here…" rows="4"></textarea>
|
15 |
-
<button id="generate-btn"
|
|
|
16 |
<pre id="output-text"></pre>
|
17 |
</div>
|
|
|
18 |
<script type="module" src="index.js"></script>
|
19 |
</body>
|
20 |
</html>
|
|
|
4 |
<meta charset="UTF-8" />
|
5 |
<title>Orpheus‑3B ONNX on Hugging Face Spaces</title>
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7 |
+
<!-- Transformers.js -->
|
8 |
<script type="module" src="https://cdn.jsdelivr.net/npm/@xenova/transformers@2.17.2/dist/transformers.min.js"></script>
|
9 |
<link rel="stylesheet" href="style.css" />
|
10 |
</head>
|
11 |
<body>
|
12 |
+
<!-- Downloading modal -->
|
13 |
+
<div id="modal" class="modal hidden">
|
14 |
+
<div class="modal-content">
|
15 |
+
<p id="modal-text">Loading model... 0%</p>
|
16 |
+
<div class="progress-bar">
|
17 |
+
<div id="progress-fill" class="progress-fill"></div>
|
18 |
+
</div>
|
19 |
+
</div>
|
20 |
+
</div>
|
21 |
+
|
22 |
<div class="container">
|
23 |
<h1>Orpheus‑3B Text Generation</h1>
|
24 |
<textarea id="input-text" placeholder="Enter your prompt here…" rows="4"></textarea>
|
25 |
+
<button id="generate-btn">Generate</button>
|
26 |
+
<div id="loading-text" class="loading-text hidden"></div>
|
27 |
<pre id="output-text"></pre>
|
28 |
</div>
|
29 |
+
|
30 |
<script type="module" src="index.js"></script>
|
31 |
</body>
|
32 |
</html>
|