Spaces:
Sleeping
Sleeping
File size: 268 Bytes
f17eb5d 3ae2dd1 f17eb5d 3ae2dd1 f17eb5d 3ae2dd1 f17eb5d 3ae2dd1 f17eb5d |
1 2 3 4 5 6 7 8 9 10 11 |
import gradio as gr
import spaces
from transformers import pipeline
pipe = pipeline("summarization", model="ShynBui/Bartpho_spelling_correction")
def greet(text):
return pipe(text)
demo = gr.Interface(fn=greet, inputs=gr.Text(), outputs=gr.Text())
demo.launch() |