Spaces:
Runtime error
Runtime error
Language translation
Browse files12345678import gradio as grfrom transformers import pipeline# Initialize a pipeline for translation with a specific modeltranslator = pipeline("translation_en_to_hi", model="opus-mt-en-hi")def translate(text):# Translate the text from English to Hindi12345678import gradio as grfrom transformers import pipeline# Initialize a pipeline for translation with LLaMA 3.1translator = pipeline("translation_en_to_hi", model="llama-3-1")def translate(text):# Translate the text from English to Hindi
app.py+2-2