File size: 1,132 Bytes
c9f72b1
6b3adca
c9f72b1
 
70719fd
98fc808
 
c9f72b1
70719fd
3b1c99b
 
f8e5021
c9f72b1
7589384
3b1c99b
 
f8e5021
28d29a9
a803651
c15e338
 
 
f8e5021
70719fd
491dadd
 
 
784e78d
8db7cf4
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import gradio as gr
from gradio.mix import Parallel

description = "Poem meter detector"
title = "Identify the meter of the poem you are reading or writing with this performant classifier"
examples = [["ุณูŽู„ูˆ ู‚ูŽู„ุจูŠ ุบูŽุฏุงุฉูŽ ุณูŽู„ุง ูˆูŽุซุงุจุง ู„ูŽุนูŽู„ูŽู‘ ุนูŽู„ู‰ ุงู„ุฌูŽู…ุงู„ู ู„ูŽู‡ู ุนูุชุงุจุง"]]


interface1 = gr.Interface.load("huggingface/Yah216/Arabic_poem_meter_3",
                        description="Meter detector",
                        examples=examples

)
interface2 = gr.Interface.load("huggingface/Yah216/Poem_Qafiyah_Detection",
                         description="Qafiyah",
                         examples=examples
 
)
interface3 = gr.Interface.load(
              "huggingface/zenkri/autotrain-Arabic_Poetry_by_Subject-920730230",
               description="Subject detector",
               examples=examples

)
demo = gr.TabbedInterface([interface1, interface2, interface3], ["ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ุจุญุฑ","ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ู‚ุงููŠุฉ","ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ู…ูˆุถูˆุน"])

demo.launch()
#Parallel(interface1, interface2, interface3, examples = examples).launch()