File size: 271 Bytes
a266fba
69ae68c
 
5b66eb6
69ae68c
a266fba
5b66eb6
a266fba
 
 
 
 
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 things(text):
    return sum(text)

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

#created by Sebastian Behar