Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -62,7 +62,7 @@ class TranslationRequest(BaseModel):
|
|
| 62 |
def translateTo(text, src, tgt):
|
| 63 |
tokenizer.src_lang = src
|
| 64 |
tokenizer.tgt_lang = tgt
|
| 65 |
-
print(tokenizer.src_lang, tokenizer.tgt_lang)
|
| 66 |
|
| 67 |
# Prepare input for the model
|
| 68 |
# We explicitly move the inputs to the same device as the model
|
|
|
|
| 62 |
def translateTo(text, src, tgt):
|
| 63 |
tokenizer.src_lang = src
|
| 64 |
tokenizer.tgt_lang = tgt
|
| 65 |
+
print({text, tokenizer.src_lang, tokenizer.tgt_lang})
|
| 66 |
|
| 67 |
# Prepare input for the model
|
| 68 |
# We explicitly move the inputs to the same device as the model
|