Spaces:
Running
Running
Delete hf_txt2img.html
Browse files- hf_txt2img.html +0 -33
hf_txt2img.html
DELETED
@@ -1,33 +0,0 @@
|
|
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/inference@2.6.4/+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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|