Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,23 +1,24 @@
|
|
1 |
import gradio as gr
|
2 |
-
from gradio import inputs
|
3 |
from gradio.mix import Parallel
|
4 |
|
5 |
description = 'Dialogue summarization models'
|
6 |
title = 'Comparing different dialogue summarization models'
|
7 |
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
)
|
13 |
|
|
|
|
|
|
|
14 |
|
15 |
-
interface2 = gr.Interface.load("huggingface/anegi/t5smallmodel",
|
16 |
-
description=description,
|
17 |
-
theme = 'dark-peach'
|
18 |
-
)
|
19 |
|
20 |
-
Parallel(
|
|
|
|
|
|
|
|
|
21 |
|
22 |
|
23 |
|
|
|
1 |
import gradio as gr
|
|
|
2 |
from gradio.mix import Parallel
|
3 |
|
4 |
description = 'Dialogue summarization models'
|
5 |
title = 'Comparing different dialogue summarization models'
|
6 |
|
7 |
|
8 |
+
model1 = gr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum",
|
9 |
+
title = 'BART-Large-cnn-samsum',
|
10 |
+
descirption = 'This is a pretrained model' )
|
|
|
11 |
|
12 |
+
model2 = gr.Interface.load("huggingface/anegi/t5smallmodel",
|
13 |
+
title = 'T5-small model',
|
14 |
+
description = 'This is a self made model')
|
15 |
|
|
|
|
|
|
|
|
|
16 |
|
17 |
+
Parallel(model1, model2 ,
|
18 |
+
title = title,
|
19 |
+
examples=examples,
|
20 |
+
inputs = gr.inputs.Textbox(lines = 10),
|
21 |
+
theme = 'dark-peach' ).launch())
|
22 |
|
23 |
|
24 |
|