Download app.py from aam1963/translate: direct link, hf CLI and curl.
- Browser
- Download file 176 Bytes
-
https://huggingface.co/spaces/aam1963/translate/resolve/main/app.py
- Command line
-
hf download hf://spaces/aam1963/translate/app.py
-
curl -L -o app.py https://huggingface.co/spaces/aam1963/translate/resolve/main/app.py
176 Bytes
| from transformers import pipeline | |
| import gradio as gr | |
| pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es") | |
| demo = gr.Interface.from_pipeline(pipe) | |
| demo.launch() |