anegi's picture
Update app.py
5eb77e0
raw
history blame
907 Bytes
import gradio as gr
from gradio import inputs
description = "Dialogue Summarization "
interface = gr.Interface.load(
"huggingface/anegi/t5smallmodel",
title = 'Dialogue Summarization',
inputs = [
gr.inputs.Textbox(lines = 7, label = 'Add Text', placeholder = 'Enter your dialogue text here... ')
],
outputs = [
gr.outputs.Textbox(type = 'auto',label = 'Summary Generated')
],
description = description,
examples = [['A: It is a great weather today.'
'B: Yes, it is sunny and bright.'
'A: Wanna play football?'
'B: Sure, call C as well.']],
theme = 'dark-peach'
)
interface.launch()