Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ from gradio.mix import Parallel
|
|
| 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: ')
|
|
@@ -13,10 +14,12 @@ io1 = gr.Interface.load("huggingface/anegi/t5smallmodel",
|
|
| 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()
|
|
|
|
| 5 |
description = 'Comparing dialogue summarization models'
|
| 6 |
|
| 7 |
io1 = gr.Interface.load("huggingface/anegi/t5smallmodel",
|
| 8 |
+
description = 'This is a self trained model',
|
| 9 |
title = 'Dialogue Summarization using t5-small model',
|
| 10 |
inputs = [
|
| 11 |
gr.inputs.Textbox(lines = 7, label = 'Text', placeholder = 'Enter your text here: ')
|
|
|
|
| 14 |
)
|
| 15 |
|
| 16 |
io2 = gr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum",
|
| 17 |
+
description = 'This is a pre trained model',
|
| 18 |
title = 'Dialogue Summarization using bart large cnn',
|
| 19 |
inputs = [
|
| 20 |
gr.inputs.Textbox(lines = 7, label = 'Text', placeholder = 'Enter your text here: ')
|
| 21 |
],
|
| 22 |
theme = 'dark-peach'
|
| 23 |
)
|
| 24 |
+
|
| 25 |
Parallel(io1,io2).launch()
|