Yah216's picture
Update app.py
469ca3f
import gradio as gr
description = "ุงู„ุชุนุฑู ุนู„ู‰ ุฎุงุตูŠุงุช ุงู„ุจูŠุช ุงู„ุดุนุฑูŠ"
title = """ู‡ุฐุง ุงู„ุจุฑู†ุงู…ุฌ ูŠู‚ูˆู… ุจุงู„ุชุนุฑู ุนู„ู‰ ู…ุฎุชู„ู ุฎุงุตูŠุงุช ุงู„ุจูŠุช ู…ู† ุงู„ุดุนุฑ.
ูŠู…ูƒู†ูƒู… ุฅุฎุชูŠุงุฑ ุงู„ุฎุงุตูŠุฉ ู…ู† ุจูŠู†:
- ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ุจุญุฑ
- ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ุฑูˆูŠ
ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ู…ูˆุถูˆุน-"""
examples = [["ุณูŽู„ูˆ ู‚ูŽู„ุจูŠ ุบูŽุฏุงุฉูŽ ุณูŽู„ุง ูˆูŽุซุงุจุง ู„ูŽุนูŽู„ูŽู‘ ุนูŽู„ู‰ ุงู„ุฌูŽู…ุงู„ู ู„ูŽู‡ู ุนูุชุงุจุง"], ["ู‚ูุง ู†ุจูƒ ู…ู† ุฐููƒุฑู‰ ุญุจูŠุจ ูˆู…ู†ุฒู„ู ุจุณูู‚ุทู ุงู„ู„ูู‘ูˆู‰ ุจูŠู†ูŽ ุงู„ุฏูŽู‘ุฎูˆู„ ูุญูŽูˆู’ู…ู„ู"]]
meter = gr.Interface.load("huggingface/Yah216/Arabic_poem_meter_3",
description="ู…ู† ูุถู„ูƒุŒ ุฃุฏุฎู„ ุงู„ุจูŠุช ุงู„ุดุนุฑูŠ ุงู„ุฐูŠ ุชูˆุฏ ุงู„ุชุนุฑู ุนู„ูŠู‡",
examples=examples, title = "ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ุจุญุฑ",
inputs = gr.inputs.Textbox(lines = 3, label = "ุงู„ุจูŠุช")
)
rawiy = gr.Interface.load("huggingface/Yah216/Poem_Qafiyah_Detection",
title ="ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ุฑูˆูŠ",
examples=examples,
description="ู…ู† ูุถู„ูƒุŒ ุฃุฏุฎู„ ุงู„ุจูŠุช ุงู„ุดุนุฑูŠ ุงู„ุฐูŠ ุชูˆุฏ ุงู„ุชุนุฑู ุนู„ูŠู‡",
inputs = gr.inputs.Textbox(lines = 3, label = "ุงู„ุจูŠุช")
)
subject = gr.Interface.load(
"huggingface/zenkri/autotrain-Arabic_Poetry_by_Subject-920730230",
title="ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ู…ูˆุถูˆุน",
examples=examples,
description="ู…ู† ูุถู„ูƒุŒ ุฃุฏุฎู„ ุงู„ุจูŠุช ุงู„ุดุนุฑูŠ ุงู„ุฐูŠ ุชูˆุฏ ุงู„ุชุนุฑู ุนู„ูŠู‡",
inputs = gr.inputs.Textbox(lines = 3, label = "ุงู„ุจูŠุช")
)
demo = gr.TabbedInterface([meter, rawiy, subject], ["ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ุจุญุฑ","ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ุฑูˆูŠ","ุงู„ุชุนุฑู ุนู„ู‰ ุงู„ู…ูˆุถูˆุน"])
demo.launch()