File size: 305 Bytes
b841138
 
 
 
 
99a8d62
b841138
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
# import gradio as gr
# print("HELLLLLLLLLLLLLLLLLLLLLLLLLLLL")
# gr.load("models/NousResearch/Yarn-Mistral-7b-128k").launch()

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()