Spaces:
Runtime error
Runtime error
initial.commit
Browse files
app.py
CHANGED
|
@@ -2,14 +2,22 @@ import gradio as gr
|
|
| 2 |
from gradio import inputs
|
| 3 |
from gradio.mix import Parallel
|
| 4 |
|
| 5 |
-
description = '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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: ')
|
| 11 |
],
|
| 12 |
-
description='This is a self
|
|
|
|
| 13 |
)
|
| 14 |
|
| 15 |
io2 = gr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum",
|
|
|
|
| 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 |
+
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.
|
| 10 |
+
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 |
inputs = [
|
| 17 |
gr.inputs.Textbox(lines = 7, label = 'Text', placeholder = 'Enter your text here: ')
|
| 18 |
],
|
| 19 |
+
description='This is a self-trained model',
|
| 20 |
+
example = example
|
| 21 |
)
|
| 22 |
|
| 23 |
io2 = gr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum",
|