Yah216 commited on
Commit
6db2142
ยท
1 Parent(s): d238c02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
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
- examples = [["ุณูŽู„ูˆ ู‚ูŽู„ุจูŠ ุบูŽุฏุงุฉูŽ ุณูŽู„ุง ูˆูŽุซุงุจุง ู„ูŽุนูŽู„ูŽู‘ ุนูŽู„ู‰ ุงู„ุฌูŽู…ุงู„ู ู„ูŽู‡ู ุนูุชุงุจุง"]]
 
7
 
8
  interface1 = gr.Interface.load("huggingface/Yah216/Arabic_poem_meter_3",
9
  description=description,
10
- examples=examples
11
  )
12
  interface2 = gr.Interface.load("huggingface/Yah216/Poem_Qafiyah_Detection",
13
  description=description,
14
- examples=examples
15
  )
16
 
17
- Series(interface1, interface2).launch()
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