Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,22 +4,22 @@ description = "ุงูุชุนุฑู ุนูู ุฎุงุตูุงุช ุงูุจูุช ุงูุดุนุฑู"
|
|
4 |
title = """ูุฐุง ุงูุจุฑูุงู
ุฌ ูููู
ุจุงูุชุนุฑู ุนูู ู
ุฎุชูู ุฎุงุตูุงุช ุงูุจูุช ู
ู ุงูุดุนุฑ.
|
5 |
ูู
ูููู
ุฅุฎุชูุงุฑ ุงูุฎุงุตูุฉ ู
ู ุจูู:
|
6 |
- ุงูุชุนุฑู ุนูู ุงูุจุญุฑ
|
7 |
-
- ุงูุชุนุฑู ุนูู
|
8 |
ุงูุชุนุฑู ุนูู ุงูู
ูุถูุน-"""
|
9 |
|
10 |
examples = [["ุณููู ูููุจู ุบูุฏุงุฉู ุณููุง ููุซุงุจุง ููุนูููู ุนููู ุงูุฌูู
ุงูู ูููู ุนูุชุงุจุง"], ["ููุง ูุจู ู
ู ุฐููุฑู ุญุจูุจ ูู
ูุฒูู ุจุณููุทู ุงูููููู ุจููู ุงูุฏููุฎูู ูุญูููู
ูู"]]
|
11 |
|
12 |
|
13 |
meter = gr.Interface.load("huggingface/Yah216/Arabic_poem_meter_3",
|
14 |
-
description="ุฃุฏุฎู ุงูุจูุช
|
15 |
examples=examples, title = "ุงูุชุนุฑู ุนูู ุงูุจุญุฑ",
|
16 |
inputs = gr.inputs.Textbox(lines = 3, label = "ุงูุจูุช")
|
17 |
|
18 |
)
|
19 |
qafiyah = gr.Interface.load("huggingface/Yah216/Poem_Qafiyah_Detection",
|
20 |
-
title ="ุงูุชุนุฑู ุนูู
|
21 |
examples=examples,
|
22 |
-
description="ุฃุฏุฎู ุงูุจูุช
|
23 |
inputs = gr.inputs.Textbox(lines = 3, label = "ุงูุจูุช")
|
24 |
|
25 |
)
|
@@ -27,9 +27,10 @@ subject = gr.Interface.load(
|
|
27 |
"huggingface/zenkri/autotrain-Arabic_Poetry_by_Subject-920730230",
|
28 |
title="ุงูุชุนุฑู ุนูู ุงูู
ูุถูุน",
|
29 |
examples=examples,
|
30 |
-
description="ุฃุฏุฎู ุงูุจูุช
|
31 |
inputs = gr.inputs.Textbox(lines = 3, label = "ุงูุจูุช")
|
32 |
|
33 |
)
|
34 |
-
|
|
|
35 |
|
|
|
4 |
title = """ูุฐุง ุงูุจุฑูุงู
ุฌ ูููู
ุจุงูุชุนุฑู ุนูู ู
ุฎุชูู ุฎุงุตูุงุช ุงูุจูุช ู
ู ุงูุดุนุฑ.
|
5 |
ูู
ูููู
ุฅุฎุชูุงุฑ ุงูุฎุงุตูุฉ ู
ู ุจูู:
|
6 |
- ุงูุชุนุฑู ุนูู ุงูุจุญุฑ
|
7 |
+
- ุงูุชุนุฑู ุนูู ุงูุฑูู
|
8 |
ุงูุชุนุฑู ุนูู ุงูู
ูุถูุน-"""
|
9 |
|
10 |
examples = [["ุณููู ูููุจู ุบูุฏุงุฉู ุณููุง ููุซุงุจุง ููุนูููู ุนููู ุงูุฌูู
ุงูู ูููู ุนูุชุงุจุง"], ["ููุง ูุจู ู
ู ุฐููุฑู ุญุจูุจ ูู
ูุฒูู ุจุณููุทู ุงูููููู ุจููู ุงูุฏููุฎูู ูุญูููู
ูู"]]
|
11 |
|
12 |
|
13 |
meter = gr.Interface.load("huggingface/Yah216/Arabic_poem_meter_3",
|
14 |
+
description="ู
ู ูุถููุ ุฃุฏุฎู ุงูุจูุช ุงูุดุนุฑู ุงูุฐู ุชูุฏ ุงูุชุนุฑู ุนููู",
|
15 |
examples=examples, title = "ุงูุชุนุฑู ุนูู ุงูุจุญุฑ",
|
16 |
inputs = gr.inputs.Textbox(lines = 3, label = "ุงูุจูุช")
|
17 |
|
18 |
)
|
19 |
qafiyah = gr.Interface.load("huggingface/Yah216/Poem_Qafiyah_Detection",
|
20 |
+
title ="ุงูุชุนุฑู ุนูู ุงูุฑูู",
|
21 |
examples=examples,
|
22 |
+
description="ู
ู ูุถููุ ุฃุฏุฎู ุงูุจูุช ุงูุดุนุฑู ุงูุฐู ุชูุฏ ุงูุชุนุฑู ุนููู",
|
23 |
inputs = gr.inputs.Textbox(lines = 3, label = "ุงูุจูุช")
|
24 |
|
25 |
)
|
|
|
27 |
"huggingface/zenkri/autotrain-Arabic_Poetry_by_Subject-920730230",
|
28 |
title="ุงูุชุนุฑู ุนูู ุงูู
ูุถูุน",
|
29 |
examples=examples,
|
30 |
+
description="ู
ู ูุถููุ ุฃุฏุฎู ุงูุจูุช ุงูุดุนุฑู ุงูุฐู ุชูุฏ ุงูุชุนุฑู ุนููู",
|
31 |
inputs = gr.inputs.Textbox(lines = 3, label = "ุงูุจูุช")
|
32 |
|
33 |
)
|
34 |
+
new_demo = gr.TabbedInterface([meter, qafiyah, subject], ["ุงูุชุนุฑู ุนูู ุงูุจุญุฑ","ุงูุชุนุฑู ุนูู ุงูุฑูู","ุงูุชุนุฑู ุนูู ุงูู
ูุถูุน"])
|
35 |
+
new_demo.launch()
|
36 |
|