badrex commited on
Commit
d3c3e3b
·
verified ·
1 Parent(s): 5129d8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -36
app.py CHANGED
@@ -69,42 +69,45 @@ demo = gr.Interface(
69
  inputs=gr.Audio(),
70
  outputs=gr.Label(num_top_classes=5, label="Predicted Dialect"),
71
  title="🎙️ Arabic Dialect Identification in Speech!",
72
- description="""
73
- <div style="text-align: center; max-width: 800px; margin: 0 auto; padding: 20px;">
74
- <p style="font-size: 16px; line-height: 1.6;">
75
- Use this AI speech model to identify five major Arabic varieties from just a short audio clip.
76
- </p>
77
- <br>
78
- <p style="font-size: 15px; line-height: 1.8;">
79
- <strong>The following Arabic language varieties are supported:</strong>
80
- <br><br>
81
- <strong>Modern Standard Arabic (MSA)</strong> - The formal language of media and education
82
- <br>
83
- <strong>Egyptian Arabic</strong> - The dialect of Cairo, Alexandria, and popular Arabic cinema
84
- <br>
85
- <strong>Gulf Arabic</strong> - Spoken across Saudi Arabia, UAE, Kuwait, Qatar, Bahrain, and Oman
86
- <br>
87
- <strong>Levantine Arabic</strong> - The dialect of Syria, Lebanon, Jordan, and Palestine
88
- <br>
89
- <strong>Maghrebi Arabic</strong> - The distinctive varieties of Morocco, Algeria, Tunisia, and Libya
90
- </p>
91
- <br>
92
- <p style="font-size: 16px; color: #2563eb;">
93
- Simply <strong>upload an audio file</strong> or <strong>record yourself speaking</strong> to see which dialect you match!
94
- </p>
95
- <p style="font-size: 14px; color: #6b7280;">
96
- Perfect for language learners, linguistics enthusiasts, or anyone curious about Arabic language variation.
97
- </p>
98
- <br>
99
- <p style="font-size: 13px;">
100
- The demo is based on a Transformer model adapted for the ADI task
101
- <a href="https://huggingface.co/badrex/mms-300m-arabic-dialect-identifier" style="color: #2563eb;">badrex/mms-300m-arabic-dialect-identifier</a>.
102
- </p>
103
- <p style="font-size: 13px;">
104
- Developed with ❤️🤍💚 by <a href="https://badrex.github.io/" style="color: #2563eb;">Badr Alabsi</a>
105
- </p>
106
- </div>
107
- """,
 
 
 
108
  examples=examples if examples else None,
109
  cache_examples=False, # Disable caching to avoid issues
110
  flagging_mode=None
 
69
  inputs=gr.Audio(),
70
  outputs=gr.Label(num_top_classes=5, label="Predicted Dialect"),
71
  title="🎙️ Arabic Dialect Identification in Speech!",
72
+ description="""
73
+ <div style="text-align: center;">
74
+ <img src="assets/logo.png" alt="Logo" style="width: 200px; height: auto; margin-bottom: 20px;">
75
+ <br>
76
+ <div style="text-align: center; max-width: 800px; margin: 0 auto; padding: 20px;">
77
+ <p style="font-size: 16px; line-height: 1.6;">
78
+ Use this AI speech model to identify five major Arabic varieties from just a short audio clip.
79
+ </p>
80
+ <br>
81
+ <p style="font-size: 15px; line-height: 1.8;">
82
+ <strong>The following Arabic language varieties are supported:</strong>
83
+ <br><br>
84
+ <strong>Modern Standard Arabic (MSA)</strong> - The formal language of media and education
85
+ <br>
86
+ <strong>Egyptian Arabic</strong> - The dialect of Cairo, Alexandria, and popular Arabic cinema
87
+ <br>
88
+ <strong>Gulf Arabic</strong> - Spoken across Saudi Arabia, UAE, Kuwait, Qatar, Bahrain, and Oman
89
+ <br>
90
+ ✦ <strong>Levantine Arabic</strong> - The dialect of Syria, Lebanon, Jordan, and Palestine
91
+ <br>
92
+ <strong>Maghrebi Arabic</strong> - The distinctive varieties of Morocco, Algeria, Tunisia, and Libya
93
+ </p>
94
+ <br>
95
+ <p style="font-size: 16px; color: #2563eb;">
96
+ Simply <strong>upload an audio file</strong> or <strong>record yourself speaking</strong> to see which dialect you match!
97
+ </p>
98
+ <p style="font-size: 14px; color: #6b7280;">
99
+ Perfect for language learners, linguistics enthusiasts, or anyone curious about Arabic language variation.
100
+ </p>
101
+ <br>
102
+ <p style="font-size: 13px;">
103
+ The demo is based on a Transformer model adapted for the ADI task
104
+ <a href="https://huggingface.co/badrex/mms-300m-arabic-dialect-identifier" style="color: #2563eb;">badrex/mms-300m-arabic-dialect-identifier</a>.
105
+ </p>
106
+ <p style="font-size: 13px;">
107
+ Developed with ❤️🤍💚 by <a href="https://badrex.github.io/" style="color: #2563eb;">Badr Alabsi</a>
108
+ </p>
109
+ </div>
110
+ """,
111
  examples=examples if examples else None,
112
  cache_examples=False, # Disable caching to avoid issues
113
  flagging_mode=None