Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,8 +2,21 @@ import gradio as gr
|
|
| 2 |
from gradio import inputs
|
| 3 |
from gradio.mix import Parallel
|
| 4 |
|
| 5 |
-
|
| 6 |
-
io2 = gr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum")
|
| 7 |
-
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
Parallel(io1,io2).launch()
|
|
|
|
| 2 |
from gradio import inputs
|
| 3 |
from gradio.mix import Parallel
|
| 4 |
|
| 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: ')
|
| 11 |
+
],
|
| 12 |
+
theme = 'dark-peach'
|
| 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()
|