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