Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,18 +12,21 @@ A: Sure!!!! I recently discovered a new cafe near my home.
|
|
| 12 |
B: Awesome. Let's go.''']]
|
| 13 |
|
| 14 |
model1 = gr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum",
|
| 15 |
-
title = 'BART-Large-cnn-samsum'
|
|
|
|
| 16 |
)
|
| 17 |
|
| 18 |
model2 = gr.Interface.load("huggingface/anegi/t5smallmodel",
|
| 19 |
title = 'T5-small model',
|
|
|
|
| 20 |
)
|
| 21 |
|
| 22 |
|
| 23 |
Parallel(model1, model2 ,
|
| 24 |
title = title,
|
|
|
|
| 25 |
inputs = gr.inputs.Textbox(lines = 7, label = 'Input Text', placeholder = 'Please enter your dialogue text here'),
|
| 26 |
-
outputs= gr.outputs.Textbox(
|
| 27 |
examples = example,
|
| 28 |
theme = 'dark-peach' ).launch()
|
| 29 |
|
|
|
|
| 12 |
B: Awesome. Let's go.''']]
|
| 13 |
|
| 14 |
model1 = gr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum",
|
| 15 |
+
title = 'BART-Large-cnn-samsum',
|
| 16 |
+
description = 'This is a pre trained model'
|
| 17 |
)
|
| 18 |
|
| 19 |
model2 = gr.Interface.load("huggingface/anegi/t5smallmodel",
|
| 20 |
title = 'T5-small model',
|
| 21 |
+
description = 'This is a self trained model',
|
| 22 |
)
|
| 23 |
|
| 24 |
|
| 25 |
Parallel(model1, model2 ,
|
| 26 |
title = title,
|
| 27 |
+
desciption = description,
|
| 28 |
inputs = gr.inputs.Textbox(lines = 7, label = 'Input Text', placeholder = 'Please enter your dialogue text here'),
|
| 29 |
+
outputs= gr.outputs.Textbox(label = 'Summary generated by the model'),
|
| 30 |
examples = example,
|
| 31 |
theme = 'dark-peach' ).launch()
|
| 32 |
|