File size: 242 Bytes
f77874b
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import gradio as gr
from transformers import pipeline

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

def things(text):
    return sum(text)

testing = gr.Interface(fn=things, inputs="text", outputs="text")
testing.launch()