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