Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,26 +3,26 @@ from gradio.mix import 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 |
-
examples = [["ุณููู ูููุจู ุบูุฏุงุฉู ุณููุง ููุซุงุจุง ููุนูููู ุนููู ุงูุฌูู
ุงูู ูููู ุนูุชุงุจุง"], ["ููุง ูุจู ู
ู ุฐููุฑู ุญุจูุจ ูู
ูุฒูู ุจุณููุทู ุงูููููู ุจููู ุงูุฏููุฎูู ูุญูููู
ูู"]
|
7 |
|
8 |
|
9 |
-
|
10 |
description="Meter detector",
|
11 |
examples=examples
|
12 |
|
13 |
)
|
14 |
-
|
15 |
description="Qafiyah",
|
16 |
examples=examples
|
17 |
|
18 |
)
|
19 |
-
|
20 |
"huggingface/zenkri/autotrain-Arabic_Poetry_by_Subject-920730230",
|
21 |
description="Subject detector",
|
22 |
examples=examples
|
23 |
|
24 |
)
|
25 |
-
demo = gr.TabbedInterface([
|
26 |
|
27 |
demo.launch()
|
28 |
#Parallel(interface1, interface2, interface3, examples = examples).launch()
|
|
|
3 |
|
4 |
description = "Poem meter detector"
|
5 |
title = "Identify the meter of the poem you are reading or writing with this performant classifier"
|
6 |
+
examples = [["ุณููู ูููุจู ุบูุฏุงุฉู ุณููุง ููุซุงุจุง ููุนูููู ุนููู ุงูุฌูู
ุงูู ูููู ุนูุชุงุจุง"], ["ููุง ูุจู ู
ู ุฐููุฑู ุญุจูุจ ูู
ูุฒูู ุจุณููุทู ุงูููููู ุจููู ุงูุฏููุฎูู ูุญูููู
ูู"]]
|
7 |
|
8 |
|
9 |
+
meter = gr.Interface.load("huggingface/Yah216/Arabic_poem_meter_3",
|
10 |
description="Meter detector",
|
11 |
examples=examples
|
12 |
|
13 |
)
|
14 |
+
qafiyah = gr.Interface.load("huggingface/Yah216/Poem_Qafiyah_Detection",
|
15 |
description="Qafiyah",
|
16 |
examples=examples
|
17 |
|
18 |
)
|
19 |
+
subject = gr.Interface.load(
|
20 |
"huggingface/zenkri/autotrain-Arabic_Poetry_by_Subject-920730230",
|
21 |
description="Subject detector",
|
22 |
examples=examples
|
23 |
|
24 |
)
|
25 |
+
demo = gr.TabbedInterface([meter, qafiyah, subject], ["ุงูุชุนุฑู ุนูู ุงูุจุญุฑ","ุงูุชุนุฑู ุนูู ุงููุงููุฉ","ุงูุชุนุฑู ุนูู ุงูู
ูุถูุน"])
|
26 |
|
27 |
demo.launch()
|
28 |
#Parallel(interface1, interface2, interface3, examples = examples).launch()
|