sum_it / app.py
SamuelMiller's picture
Update app.py
d500bfa
raw
history blame
687 Bytes
import gradio as gr
from transformers import pipeline
from gradio.mix import Parallel, Series
def greet(name):
return "Hello " + name + "!!"
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
io1 = gr.Interface.load('huggingface/google/pegasus-large')
desc = "Summarize some text!"
iface = Parallel(
theme='huggingface',
title= 'Hugging Face Text Summarizer',
description = desc,
examples=None, #replace "sample" with directory to let gradio scan through those files and give you the text
inputs = gr.inputs.Textbox(lines = 10, label="Text"))
iface.launch(inline = False)