Spaces:
Running
on
Zero
Running
on
Zero
Update app.py with Arabic dialect names in Arabci script
Browse files
app.py
CHANGED
|
@@ -13,10 +13,10 @@ print("Model loaded successfully")
|
|
| 13 |
# Define dialect mapping
|
| 14 |
dialect_mapping = {
|
| 15 |
"MSA": "Modern Standard Arabic(MSA) - العربية الفصحى الحديثة",
|
| 16 |
-
"Egyptian": "Egyptian Arabic",
|
| 17 |
-
"Gulf": "Gulf Arabic",
|
| 18 |
-
"Levantine": "Levantine Arabic",
|
| 19 |
-
"Maghrebi": "Maghrebi Arabic"
|
| 20 |
}
|
| 21 |
|
| 22 |
def predict_dialect(audio):
|
|
|
|
| 13 |
# Define dialect mapping
|
| 14 |
dialect_mapping = {
|
| 15 |
"MSA": "Modern Standard Arabic(MSA) - العربية الفصحى الحديثة",
|
| 16 |
+
"Egyptian": "Egyptian Arabic - اللهجة المصرية العامية",
|
| 17 |
+
"Gulf": "Gulf Arabic - لهجة الجزيرة العربية",
|
| 18 |
+
"Levantine": "Levantine Arabic - لهجة بلاد الشام",
|
| 19 |
+
"Maghrebi": "Maghrebi Arabic - اللهجة المغاربية"
|
| 20 |
}
|
| 21 |
|
| 22 |
def predict_dialect(audio):
|