File size: 578 Bytes
cb5c2b3
 
 
 
933910a
 
0cba37e
cb5c2b3
85b8790
7f6348d
933910a
393e0c7
933910a
7f6348d
 
63abbf6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 = 'Text', placeholder = 'Enter your dialogue text here... ')       
            ],
            outputs = [
               gr.outputs.Textbox(type = 'auto',label = 'Summary Generated')            
            ],
            description = description
            )
interface.launch()