Spaces:
Runtime error
Runtime error
Commit
·
3d62bf5
0
Parent(s):
Duplicate from Yah216/Arabic_poem_classifier
Browse filesCo-authored-by: Yahya GHRAB <[email protected]>
- .gitattributes +27 -0
- README.md +13 -0
- app.py +36 -0
.gitattributes
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
19 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
+
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: Arabic_poem_classifier
|
3 |
+
emoji: 👁
|
4 |
+
colorFrom: yellow
|
5 |
+
colorTo: blue
|
6 |
+
sdk: gradio
|
7 |
+
sdk_version: 3.0.9
|
8 |
+
app_file: app.py
|
9 |
+
pinned: true
|
10 |
+
duplicated_from: Yah216/Arabic_poem_classifier
|
11 |
+
---
|
12 |
+
|
13 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces#reference
|
app.py
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
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 |
+
rawiy = 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 |
+
)
|
26 |
+
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, rawiy, subject], ["التعرف على البحر","التعرف على الروي","التعرف على الموضوع"])
|
35 |
+
demo.launch()
|
36 |
+
|