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