Spaces:
Sleeping
Sleeping
File size: 436 Bytes
d61a0a9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
import transformers
from transformers import pipeline
summa= pipeline('summarization')
def Get_summarization(input_text):
text=summa(input_text)
result=text[0]['summary_text']
return result
iface= gr.Interface(fn=Get_summarization,
title='Text Summarization',
inputs='text',outputs='text',
description='summarization of text giving input').launch() |