Spaces:
Running
Running
Update translation.html
Browse files- translation.html +1 -1
translation.html
CHANGED
@@ -92,7 +92,7 @@
|
|
92 |
const textFieldValue = document.getElementById("translationText2").value.trim();
|
93 |
console.log(textFieldValue)
|
94 |
try {
|
95 |
-
|
96 |
model: 't5-base',
|
97 |
inputs: textFieldValue,
|
98 |
});
|
|
|
92 |
const textFieldValue = document.getElementById("translationText2").value.trim();
|
93 |
console.log(textFieldValue)
|
94 |
try {
|
95 |
+
const result = await hf.translation({
|
96 |
model: 't5-base',
|
97 |
inputs: textFieldValue,
|
98 |
});
|