Spaces:
Sleeping
Sleeping
File size: 302 Bytes
5677497 7e8974e fbcbcc2 7e8974e 21d3046 |
1 2 3 4 5 6 7 8 9 10 |
import gradio as gr
from transformers import pipeline
pipe = pipeline('summarization', model='facebook/bart-large-cnn')
def summary(input):
value = pipe(input)
return value[0]['summary_text']
a = gr.Interface(fn=summary, inputs= 'text', outputs = 'text', title = 'Text Summarizer')
a.launch() |