Spaces:
Runtime error
Runtime error
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() | |