File size: 704 Bytes
cb5c2b3
786aa6e
cb5c2b3
c49136b
 
7d6ebdf
 
4754e4d
10356cd
 
7d6ebdf
4754e4d
 
10356cd
84138f4
 
4754e4d
 
86e8910
 
dfe146c
7d6ebdf
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import gradio as gr
from gradio.mix import Parallel

description = 'Dialogue summarization models'
title = 'Comparing different dialogue summarization models'


model1 = gr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum",
                            title = 'BART-Large-cnn-samsum'
                            )

model2 = gr.Interface.load("huggingface/anegi/t5smallmodel",
                            title = 'T5-small model',
                            )


Parallel(model1, model2 ,
         title = title,
         inputs = gr.inputs.Textbox(lines = 7, label = 'Input Text', placeholder = 'Please enter your dialogue text here'),
         
         theme = 'dark-peach' ).launch()