boazchung commited on
Commit
b206969
1 Parent(s): f3b16ae

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +4 -5
index.html CHANGED
@@ -10,7 +10,8 @@
10
  <body>
11
  <div class="card">
12
  <h1>Welcome to your static Space!</h1>
13
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
 
14
  <p>
15
  Also don't forget to check the
16
  <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
@@ -18,15 +19,13 @@
18
  </div>
19
  <script type="module">
20
  import { HfInference } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected]/+esm';
21
- //import { promises as fsPromises } from 'fs';
22
- //import dotenv from "dotenv";
23
- //dotenv.config();
24
 
25
  const hf = new HfInference();
 
26
  // You can also omit "model" to use the recommended model for the task
27
  const result_tr = await hf.translation({
28
      model: 't5-base',
29
-     inputs: 'My name is Wolfgang and I live in Berlin',
30
  });
31
  console.log(result_tr);
32
  </script>
 
10
  <body>
11
  <div class="card">
12
  <h1>Welcome to your static Space!</h1>
13
+ <h12 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>.
 
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_tr = await hf.translation({
27
      model: 't5-base',
28
+     inputs: 'My name is Wolfgang and I live in Amsterdam',
29
  });
30
  console.log(result_tr);
31
  </script>