Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,23 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from gradio import inputs
|
|
|
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
gr.inputs.Textbox(lines = 7, label = 'Add Text', placeholder = 'Enter your dialogue text here... ')
|
| 10 |
-
],
|
| 11 |
-
outputs = [
|
| 12 |
-
gr.outputs.Textbox(type = 'auto',label = 'Summary Generated')
|
| 13 |
-
],
|
| 14 |
-
description = description,
|
| 15 |
-
examples = [['A: It is a great weather today.'
|
| 16 |
-
'B: Yes, it is sunny and bright.'
|
| 17 |
-
'A: Wanna play football?'
|
| 18 |
-
'B: Sure, call C as well.']],
|
| 19 |
-
theme = 'dark-peach'
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
)
|
| 23 |
-
interface.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from gradio import inputs
|
| 3 |
+
from gradio.mix import Parallel
|
| 4 |
|
| 5 |
+
io1 = gr.Interface.load("huggingface/anegi/t5smallmodel")
|
| 6 |
+
io2 = hr.Interface.load("huggingface/philschmid/bart-large-cnn-samsum")
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
Parallel(io1,io2).launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|