Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ if os.path.exists(examples_dir):
|
|
| 17 |
examples.append([os.path.join(examples_dir, filename)])
|
| 18 |
|
| 19 |
# Load model and processor
|
| 20 |
-
MODEL_PATH = "badrex/w2v-bert-2.0-
|
| 21 |
processor = AutoProcessor.from_pretrained(MODEL_PATH)
|
| 22 |
model = AutoModelForCTC.from_pretrained(MODEL_PATH)
|
| 23 |
|
|
@@ -62,7 +62,7 @@ def process_audio(audio_path):
|
|
| 62 |
|
| 63 |
# Define Gradio interface
|
| 64 |
with gr.Blocks(title="ASRwanda") as demo:
|
| 65 |
-
gr.Markdown("#
|
| 66 |
gr.Markdown("""
|
| 67 |
<div class="centered-content">
|
| 68 |
<div>
|
|
@@ -73,10 +73,7 @@ with gr.Blocks(title="ASRwanda") as demo:
|
|
| 73 |
<p style="font-size: 15px; line-height: 1.8;">
|
| 74 |
Muraho ๐๐ผ
|
| 75 |
<br><br>
|
| 76 |
-
This is a demo for
|
| 77 |
-
The underlying ASR model was trained on 1000 hours of transcribed speech provided by
|
| 78 |
-
<a href="https://digitalumuganda.com/" style="color: #2563eb;">Digital Umuganda</a> as part of the Kinyarwanda
|
| 79 |
-
<a href="https://www.kaggle.com/competitions/kinyarwanda-automatic-speech-recognition-track-b" style="color: #2563eb;"> ASR hackathon</a> on Kaggle.
|
| 80 |
<br><br>
|
| 81 |
Simply <strong>upload an audio file</strong> ๐ค or <strong>record yourself speaking</strong> ๐๏ธโบ๏ธ to try out the model!
|
| 82 |
</p>
|
|
|
|
| 17 |
examples.append([os.path.join(examples_dir, filename)])
|
| 18 |
|
| 19 |
# Load model and processor
|
| 20 |
+
MODEL_PATH = "badrex/w2v-bert-2.0-amharic-asr"
|
| 21 |
processor = AutoProcessor.from_pretrained(MODEL_PATH)
|
| 22 |
model = AutoModelForCTC.from_pretrained(MODEL_PATH)
|
| 23 |
|
|
|
|
| 62 |
|
| 63 |
# Define Gradio interface
|
| 64 |
with gr.Blocks(title="ASRwanda") as demo:
|
| 65 |
+
gr.Markdown("# Amharic-ASR ๐๏ธ Speech Recognition for Amharic Language ๐ช๐น")
|
| 66 |
gr.Markdown("""
|
| 67 |
<div class="centered-content">
|
| 68 |
<div>
|
|
|
|
| 73 |
<p style="font-size: 15px; line-height: 1.8;">
|
| 74 |
Muraho ๐๐ผ
|
| 75 |
<br><br>
|
| 76 |
+
This is a demo for a Transformer-based automatic speech recognition (ASR) system for the Amharic language.
|
|
|
|
|
|
|
|
|
|
| 77 |
<br><br>
|
| 78 |
Simply <strong>upload an audio file</strong> ๐ค or <strong>record yourself speaking</strong> ๐๏ธโบ๏ธ to try out the model!
|
| 79 |
</p>
|