badrex commited on
Commit
86ceded
·
verified ·
1 Parent(s): b78ce3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -66,4 +66,21 @@ By <a href="https://badrex.github.io/">Badr Alabsi</a> with ❤️🤍💚
66
  This is a demo for the accurate and robust Transformer-based <a href="https://huggingface.co/badrex/mms-300m-arabic-dialect-identifier">model</a> for Spoken Arabic Dialect Identification (ADI).
67
  From just a short audio clip (5-10 seconds), the model can identify Modern Standard Arabic (MSA) as well as four major regional Arabic varieties: Egyptian Arabic, Peninsular Arabic (Gulf, Yemeni, and Iraqi), Levantine Arabic, and Maghrebi Arabic.
68
 
69
- Simply **upload an audio file** 📤 or **record yourself speaking** 🎙️⏺️ to try out the model!
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  This is a demo for the accurate and robust Transformer-based <a href="https://huggingface.co/badrex/mms-300m-arabic-dialect-identifier">model</a> for Spoken Arabic Dialect Identification (ADI).
67
  From just a short audio clip (5-10 seconds), the model can identify Modern Standard Arabic (MSA) as well as four major regional Arabic varieties: Egyptian Arabic, Peninsular Arabic (Gulf, Yemeni, and Iraqi), Levantine Arabic, and Maghrebi Arabic.
68
 
69
+ Simply **upload an audio file** 📤 or **record yourself speaking** 🎙️⏺️ to try out the model!
70
+ """
71
+
72
+
73
+ demo = gr.Interface(
74
+ fn=predict_dialect,
75
+ inputs=gr.Audio(),
76
+ outputs=gr.Label(num_top_classes=5, label="Predicted Dialect"),
77
+ title="Tamyïz 🍉 Arabic Dialect Identification in Speech",
78
+ description=description,
79
+ examples=examples if examples else None,
80
+ cache_examples=False,
81
+
82
+ flagging_mode=None
83
+ )
84
+
85
+
86
+ demo.launch(share=True)