Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from gradio.mix import Parallel
|
3 |
|
4 |
-
|
5 |
title = 'Comparing different dialogue summarization models'
|
|
|
6 |
|
7 |
example = [[''' A: Hello B. How are you?
|
8 |
B: I'm good. How's your course going on these days?
|
@@ -35,6 +36,7 @@ Parallel(model1, model2 ,
|
|
35 |
title = title,
|
36 |
description = description,
|
37 |
inputs = gr.inputs.Textbox(lines = 7, label = 'Input Text', placeholder = 'Please enter your dialogue text here'),
|
38 |
-
|
|
|
39 |
examples = example,
|
40 |
-
theme = '
|
|
|
1 |
import gradio as gr
|
2 |
from gradio.mix import Parallel
|
3 |
|
4 |
+
|
5 |
title = 'Comparing different dialogue summarization models'
|
6 |
+
description = 'Here we are going to compare different summarization model namely BART-LARGE model which is trained on samsum data and t5small model which is also trained on the same dataset.'
|
7 |
|
8 |
example = [[''' A: Hello B. How are you?
|
9 |
B: I'm good. How's your course going on these days?
|
|
|
36 |
title = title,
|
37 |
description = description,
|
38 |
inputs = gr.inputs.Textbox(lines = 7, label = 'Input Text', placeholder = 'Please enter your dialogue text here'),
|
39 |
+
live=True,
|
40 |
+
layout='vertically',
|
41 |
examples = example,
|
42 |
+
theme = 'peach' ).launch()
|