Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,19 +1,20 @@
|
|
1 |
import gradio as gr
|
2 |
-
from gradio.mix import Series
|
3 |
|
4 |
description = "Poem meter detector"
|
5 |
title = "Identify the meter of the poem you are reading or writing with this performant classifier"
|
6 |
-
|
|
|
7 |
|
8 |
interface1 = gr.Interface.load("huggingface/Yah216/Arabic_poem_meter_3",
|
9 |
description=description,
|
10 |
-
examples=
|
11 |
)
|
12 |
interface2 = gr.Interface.load("huggingface/Yah216/Poem_Qafiyah_Detection",
|
13 |
description=description,
|
14 |
-
examples=
|
15 |
)
|
16 |
|
17 |
-
|
18 |
|
19 |
|
|
|
1 |
import gradio as gr
|
2 |
+
from gradio.mix import Series, Parallel
|
3 |
|
4 |
description = "Poem meter detector"
|
5 |
title = "Identify the meter of the poem you are reading or writing with this performant classifier"
|
6 |
+
examples1 = [["ุณููู ูููุจู ุบูุฏุงุฉู ุณููุง ููุซุงุจุง ููุนูููู ุนููู ุงูุฌูู
ุงูู ูููู ุนูุชุงุจุง"]]
|
7 |
+
examples2 = [["ุณููู ูููุจู ุบูุฏุงุฉู ุณููุง ููุซุงุจุง ููุนูููู ุนููู ุงูุฌูู
ุงูู ูููู ุนูุชุงุจุง"]]
|
8 |
|
9 |
interface1 = gr.Interface.load("huggingface/Yah216/Arabic_poem_meter_3",
|
10 |
description=description,
|
11 |
+
examples=examples1
|
12 |
)
|
13 |
interface2 = gr.Interface.load("huggingface/Yah216/Poem_Qafiyah_Detection",
|
14 |
description=description,
|
15 |
+
examples=examples2
|
16 |
)
|
17 |
|
18 |
+
Parallel(interface1, interface2).launch()
|
19 |
|
20 |
|