anegi commited on
Commit
0613951
·
1 Parent(s): 5ac67df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -3
app.py CHANGED
@@ -2,8 +2,21 @@ import gradio as gr
2
  from gradio import inputs
3
  from gradio.mix import Parallel
4
 
5
- io1 = gr.Interface.load("huggingface/anegi/t5smallmodel")
6
- io2 = gr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum")
7
-
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  Parallel(io1,io2).launch()
 
2
  from gradio import inputs
3
  from gradio.mix import Parallel
4
 
5
+ description = 'Comparing dialogue summarization models'
 
 
6
 
7
+ io1 = gr.Interface.load("huggingface/anegi/t5smallmodel",
8
+ title = 'Dialogue Summarization using t5-small model',
9
+ inputs = [
10
+ gr.inputs.Textbox(lines = 7, label = 'Text', placeholder = 'Enter your text here: ')
11
+ ],
12
+ theme = 'dark-peach'
13
+ )
14
+
15
+ io2 = gr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum",
16
+ title = 'Dialogue Summarization using bart large cnn',
17
+ inputs = [
18
+ gr.inputs.Textbox(lines = 7, label = 'Text', placeholder = 'Enter your text here: ')
19
+ ],
20
+ theme = 'dark-peach'
21
+ )
22
  Parallel(io1,io2).launch()