Spaces:
Running
Running
Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
@@ -23,11 +23,11 @@
|
|
23 |
const hf = new HfInference();
|
24 |
|
25 |
// You can also omit "model" to use the recommended model for the task
|
26 |
-
const
|
27 |
model: 't5-base',
|
28 |
inputs: 'My name is Wolfgang and I live in Amsterdam',
|
29 |
});
|
30 |
-
console.log(
|
31 |
</script>
|
32 |
</body>
|
33 |
</html>
|
|
|
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>
|