Yah216 commited on
Commit
e770cc2
โ€ข
1 Parent(s): 1d65a10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
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
- demo = gr.TabbedInterface([meter, qafiyah, subject], ["ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ุจุญุฑ","ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ู‚ุงููŠุฉ","ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ู…ูˆุถูˆุน"])
 
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