anegi commited on
Commit
786aa6e
1 Parent(s): 5eb77e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -20
app.py CHANGED
@@ -1,23 +1,9 @@
1
  import gradio as gr
2
  from gradio import inputs
 
3
 
4
- description = "Dialogue Summarization "
5
- interface = gr.Interface.load(
6
- "huggingface/anegi/t5smallmodel",
7
- title = 'Dialogue Summarization',
8
- inputs = [
9
- gr.inputs.Textbox(lines = 7, label = 'Add Text', placeholder = 'Enter your dialogue text here... ')
10
- ],
11
- outputs = [
12
- gr.outputs.Textbox(type = 'auto',label = 'Summary Generated')
13
- ],
14
- description = description,
15
- examples = [['A: It is a great weather today.'
16
- 'B: Yes, it is sunny and bright.'
17
- 'A: Wanna play football?'
18
- 'B: Sure, call C as well.']],
19
- theme = 'dark-peach'
20
-
21
-
22
- )
23
- interface.launch()
 
1
  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 = hr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum")
7
+
8
+
9
+ Parallel(io1,io2).launch()