Download usage.py from datasetsANDmodels/en2vi: direct link, hf CLI and curl.
- Browser
- Download file 177 Bytes
-
https://huggingface.co/datasetsANDmodels/en2vi/resolve/main/usage.py
- Command line
-
hf download hf://datasetsANDmodels/en2vi/usage.py
-
curl -L -o usage.py https://huggingface.co/datasetsANDmodels/en2vi/resolve/main/usage.py
177 Bytes
| from transformers import pipeline | |
| pipe= pipeline("translation", model="en2vi") | |
| text="I am calling from the tax office" | |
| result =pipe(text) | |
| print( result[0]["translation_text"]) | |