File size: 312 Bytes
b841138
 
 
 
 
99a8d62
b841138
ade8f66
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="NousResearch/Yarn-Mistral-7b-128k")

demo = gr.Interface.from_pipeline(pipe)
demo.launch()