Spaces:
Runtime error
Runtime error
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() | |