anegi commited on
Commit
7d6ebdf
·
1 Parent(s): cbe5f19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -16
app.py CHANGED
@@ -4,6 +4,7 @@ from gradio.mix import Parallel
4
 
5
  description = 'Dialogue summarization models'
6
  title = 'Comparing different dialogue summarization models'
 
7
  example = [['''Aakash: Do you watched last night match?
8
  Vikas: No, I was busy. What happended?
9
  Aakash: Barcelona won their game against Sevilla 1-0. Pedri scored an sensational goal.
@@ -11,19 +12,16 @@ Vikas: Oh really!!! I have to watch the highlights at home.
11
  Aakash: Yes, I am so excited for the new upcoming season. Xavi really doing wonders.
12
  Vikas: Exactly!! Xavi has changed the way Barcelona play. The good days are coming back. ''']]
13
 
14
- io1 = gr.Interface.load("huggingface/anegi/t5smallmodel",
15
- title='Dialogue Summarization using t5-small model',
16
- description='This is a self-trained model',
17
- )
18
-
19
- io2 = gr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum",
20
- title='Dialogue Summarization using bart large cnn',
21
- description='This is a pre trained model ',
22
- )
23
-
24
- io3 = gr.Interface(description = description,
25
- examples = example,
26
- theme='dark-peach'
27
- )
28
-
29
- Parallel(io1,io2,io3).launch()
 
4
 
5
  description = 'Dialogue summarization models'
6
  title = 'Comparing different dialogue summarization models'
7
+
8
  example = [['''Aakash: Do you watched last night match?
9
  Vikas: No, I was busy. What happended?
10
  Aakash: Barcelona won their game against Sevilla 1-0. Pedri scored an sensational goal.
 
12
  Aakash: Yes, I am so excited for the new upcoming season. Xavi really doing wonders.
13
  Vikas: Exactly!! Xavi has changed the way Barcelona play. The good days are coming back. ''']]
14
 
15
+
16
+ interface = gr.Interface.load("huggingface/anegi/t5smallmodel",
17
+ description=description,
18
+ examples=example,
19
+ theme = 'dark-peach'
20
+ )
21
+
22
+ interface.launch()
23
+
24
+
25
+
26
+
27
+