Translation_App / model.py
karanvirsagar1998's picture
Update model.py
3c0e4f9 verified
raw
history blame contribute delete
317 Bytes
# Use a pipeline as a high-level helper
from transformers import pipeline
import os
HF_TOKEN = os.getenv("TOKEN")
translator = pipeline("translation",
model="PaulineSanchez/autotrain-translation_food_english_to_french-52830124391",
token = HF_TOKEN
)