Videoderdhn / Wryrrt
Feroj700's picture
Create Wryrrt
4e22c80 verified
Raw
History Blame Contribute Delete
298 Bytes
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="hf-inference",
api_key=os.environ["HF_TOKEN"],
)
result = client.translation(
"Меня зовут Вольфганг и я живу в Берлине",
model="Helsinki-NLP/opus-mt-en-hi",
)