Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,8 @@ def translate(
|
|
| 45 |
early_stopping=True,
|
| 46 |
)
|
| 47 |
output = tokenizer.decode(generated_ids[0], skip_special_tokens=True)
|
| 48 |
-
print(
|
|
|
|
| 49 |
# decode the first (and only) sequence
|
| 50 |
return output
|
| 51 |
|
|
|
|
| 45 |
early_stopping=True,
|
| 46 |
)
|
| 47 |
output = tokenizer.decode(generated_ids[0], skip_special_tokens=True)
|
| 48 |
+
print(f"English: {text}")
|
| 49 |
+
print(f"Translated: {output}")
|
| 50 |
# decode the first (and only) sequence
|
| 51 |
return output
|
| 52 |
|