Yah216 commited on
Commit
cf123a3
โ€ข
1 Parent(s): 8c3678a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- interface1 = gr.Interface.load("huggingface/Yah216/Arabic_poem_meter_3",
10
  description="Meter detector",
11
  examples=examples
12
 
13
  )
14
- interface2 = gr.Interface.load("huggingface/Yah216/Poem_Qafiyah_Detection",
15
  description="Qafiyah",
16
  examples=examples
17
 
18
  )
19
- interface3 = 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([interface1, interface2, interface3], ["ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ุจุญุฑ","ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ู‚ุงููŠุฉ","ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ู…ูˆุถูˆุน"])
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()