File size: 222 Bytes
302b69b
 
 
 
 
 
 
08a16dc
302b69b
 
1
2
3
4
5
6
7
8
9
10
11
from transformers import pipeline
import gradio as gr

def get_summary(text):
    classifier = pipeline("summarization")
    return classifier(text)

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