Spaces:
Runtime error
Runtime error
File size: 1,900 Bytes
c9f72b1 4085e56 cf123a3 98fc808 c9f72b1 cf123a3 32e10f5 f8e5021 c9f72b1 cf123a3 32e10f5 f8e5021 28d29a9 cf123a3 c15e338 1d65a10 32e10f5 f8e5021 70719fd cf123a3 491dadd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
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 = "البيت")
)
qafiyah = 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, qafiyah, subject], ["التعرف على البحر","التعرف على القافية","التعرف على الموضوع"])
|