File size: 263 Bytes
7ae7da8
 
 
 
 
 
 
 
 
 
5404ca0
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr
from transformers import pipeline

sum = pipeline("summarization", model="facebook/bart-large-cnn")

def stuff(text):
    return sum(text)

demo = gr.Interface(fn=stuff, inputs="text", outputs="text")
demo.launch()

# Done by: Alejandro Escoto