sun-tana's picture
test model
8df96f2
raw
history blame
296 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline("translation", model="sun-tana/residual_text_t1_m1")
def predict(text):
return pipe(text)
iface = gr.Interface(
fn=predict,
inputs='text',
outputs='text',
examples=[["Hello! My name is Omar"]]
)
iface.launch()