sum_it / app.py
SamuelMiller's picture
Update app.py
ccfe856
raw
history blame
658 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")
desc = "Summarize some text!"
sample = [[y],[x],[z]]
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)