Spaces:
Sleeping
Sleeping
File size: 687 Bytes
18526df 337d2a4 18526df ccfe856 d500bfa 337d2a4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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) |