File size: 971 Bytes
cb5c2b3
 
786aa6e
cb5c2b3
0613951
786aa6e
0613951
 
 
 
 
 
 
 
 
 
 
 
 
 
 
786aa6e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import gradio as gr
from gradio import inputs
from gradio.mix import Parallel

description = 'Comparing dialogue summarization models'

io1 = gr.Interface.load("huggingface/anegi/t5smallmodel",
                        title = 'Dialogue Summarization using t5-small model',
                        inputs = [
                            gr.inputs.Textbox(lines = 7, label = 'Text', placeholder = 'Enter your text here: ')  
                        ],
                        theme = 'dark-peach'
                        )
                        
io2 = gr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum",
                        title = 'Dialogue Summarization using bart large cnn',
                        inputs = [
                            gr.inputs.Textbox(lines = 7, label = 'Text', placeholder = 'Enter your text here: ')  
                        ],
                        theme = 'dark-peach'
                        )
Parallel(io1,io2).launch()