Spaces:
Sleeping
Sleeping
from transformers import pipeline | |
import gradio as gr | |
model = pipeline("summarization") | |
def get_input(text): | |
summary = model(text,max_length =120, min_length = 40,do_sample=False) | |
return summary | |
iface = gr.Interface(fn=get_input,inputs="text",outputs="text",title = "Text Summarizer",description="Enter your text to get summary") | |
iface.launch() |