Spaces:
Build error
Build error
markdown design for space
Browse files- app.py +20 -2
- article.py +20 -0
- data +1 -1
app.py
CHANGED
@@ -4,6 +4,7 @@ import csv
|
|
4 |
import random
|
5 |
import pandas as pd
|
6 |
import gradio as gr
|
|
|
7 |
from utils import *
|
8 |
import scipy.io.wavfile as wavf
|
9 |
from huggingface_hub import Repository, upload_file
|
@@ -178,6 +179,23 @@ markdown = """<div style="text-align: center"><p style="font-size: 40px"> Africa
|
|
178 |
This is a platform to contribute to your African language by recording your voice </div>"""
|
179 |
|
180 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
# Interface design begins
|
182 |
block = gr.Blocks(css=BLOCK_CSS)
|
183 |
with block:
|
@@ -192,7 +210,7 @@ with block:
|
|
192 |
accent = gr.inputs.Textbox(label="Accent (optional)",default='')
|
193 |
|
194 |
number = gr.Image('number/0.jpg',image_mode="L")
|
195 |
-
text = gr.inputs.Textbox(placeholder='e.g. `one` is `otu` in Igbo or `ọkan` in Yoruba',label="
|
196 |
record = gr.inputs.Audio(source="microphone",label='Record your voice')
|
197 |
|
198 |
output_result = gr.outputs.HTML()
|
@@ -214,6 +232,6 @@ with block:
|
|
214 |
|
215 |
#listen = gr.Button("Listen")
|
216 |
listen_tab.select(display_records,inputs=[],outputs=display_html)
|
217 |
-
|
218 |
|
219 |
block.launch()
|
|
|
4 |
import random
|
5 |
import pandas as pd
|
6 |
import gradio as gr
|
7 |
+
from article import ARTICLE
|
8 |
from utils import *
|
9 |
import scipy.io.wavfile as wavf
|
10 |
from huggingface_hub import Repository, upload_file
|
|
|
179 |
This is a platform to contribute to your African language by recording your voice </div>"""
|
180 |
|
181 |
|
182 |
+
markdown="""
|
183 |
+
# 🌍 African Digits Recording Sprint
|
184 |
+
|
185 |
+
> This is an event to record numbers (0-9) in your African language.
|
186 |
+
|
187 |
+
1. Choose your African language
|
188 |
+
2. Fill in the speaker metadata (age, gender, accent). This is optional but important to build better speech models.
|
189 |
+
3. You will see the image of a number __(this is the number you will record)__.
|
190 |
+
4. Fill in the word of that **number** (optional)
|
191 |
+
5. Click record and say the number in your African language.
|
192 |
+
6. Click ‘Submit’. It will save your record and go to the next number.
|
193 |
+
7. Repeat 1-7
|
194 |
+
8. Leave a ❤ in the Space, if you found it fun.
|
195 |
+
"""
|
196 |
+
|
197 |
+
|
198 |
+
|
199 |
# Interface design begins
|
200 |
block = gr.Blocks(css=BLOCK_CSS)
|
201 |
with block:
|
|
|
210 |
accent = gr.inputs.Textbox(label="Accent (optional)",default='')
|
211 |
|
212 |
number = gr.Image('number/0.jpg',image_mode="L")
|
213 |
+
text = gr.inputs.Textbox(placeholder='e.g. `one` is `otu` in Igbo or `ọkan` in Yoruba',label="How is the number called in your language (optional)")
|
214 |
record = gr.inputs.Audio(source="microphone",label='Record your voice')
|
215 |
|
216 |
output_result = gr.outputs.HTML()
|
|
|
232 |
|
233 |
#listen = gr.Button("Listen")
|
234 |
listen_tab.select(display_records,inputs=[],outputs=display_html)
|
235 |
+
gr.Markdown(ARTICLE)
|
236 |
|
237 |
block.launch()
|
article.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
ARTICLE ="""
|
2 |
+
**Motivation**
|
3 |
+
|
4 |
+
In Africa, like in other continents of the world, people access vital information mainly through their mobile phones. Therefore the need for voice-enabled applications can be found in all sectors, from health, food to more fun (games, social media).
|
5 |
+
|
6 |
+
Existing speech recognition services are not available in many African languages, and the speakers of these languages are excluded from the benefits of voice-enabled technologies.
|
7 |
+
|
8 |
+
This dataset will boost speech technologies (like speech-to-text, text-to-speech, speech translation, and modeling) for African languages, which hitherto had little or no public dataset.
|
9 |
+
|
10 |
+
**Note:** This is a continuous effort. the sprint is just to kick-start the event.
|
11 |
+
|
12 |
+
**Benefits of such a dataset**
|
13 |
+
- Useful dataset to introduce people to audio-related Machine Learning. It can be used as a simple training and/or evaluation dataset for speech processing tasks.
|
14 |
+
|
15 |
+
**Contact**
|
16 |
+
In case of questions, issues or anything contact Chris Emezue at:
|
17 |
+
- chris@huggingface.co
|
18 |
+
|
19 |
+
|
20 |
+
"""
|
data
CHANGED
@@ -1 +1 @@
|
|
1 |
-
Subproject commit
|
|
|
1 |
+
Subproject commit f378d5cd72892211c6ff30dbecf891f953836e0f
|