Spaces:
Sleeping
Sleeping
# 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 | |
) |