File size: 382 Bytes
754db4b
 
4f1b14b
e2b89c8
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#!pip install transformers
#!pip install gradio
#from transformers import pipeline
import gradio as gr


gr.Interface.load("models/sshleifer/distilbart-cnn-12-6",

        inputs=gr.Textbox(lines=5, label="Put what you want to summarise below"),
        outputs=gr.Textbox(label="Result", lines=3),
        title="Text summarization with Makana Boys"

        ).launch(share = True)