Spaces:
Runtime error
Runtime error
File size: 912 Bytes
cb5c2b3 933910a 0cba37e cb5c2b3 6ee2e12 7f6348d 933910a 393e0c7 933910a 6ee2e12 3565836 ebbd778 e0bf6fd ebbd778 b6fa4f3 7f6348d 63abbf6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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() |