boazchung commited on
Commit
a4a9c53
โ€ข
1 Parent(s): aa0ec51

Create hf_txt2img.html

Browse files
Files changed (1) hide show
  1. hf_txt2img.html +33 -0
hf_txt2img.html ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width" />
6
+ <title>T5-base Language Translator</title>
7
+ <link rel="stylesheet" href="style.css" />
8
+ </head>
9
+
10
+ <body>
11
+ <div class="card">
12
+ <h1>Welcome to your static Space!</h1>
13
+ <h2 style="color: blue;">huggingface.js ํ…Œ์ŠคํŠธ ํŽ˜์ด์ง€</h2>
14
+ <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
15
+ <p>
16
+ Also don't forget to check the
17
+ <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
18
+ </p>
19
+ </div>
20
+ <script type="module">
21
+ import { HfInference } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected]/+esm';
22
+
23
+ const hf = new HfInference();
24
+
25
+ // You can also omit "model" to use the recommended model for the task
26
+ const result = await hf.translation({
27
+ model: 't5-base',
28
+ inputs: 'My name is Wolfgang and I live in Amsterdam',
29
+ });
30
+ console.log(result);
31
+ </script>
32
+ </body>
33
+ </html>