badrex commited on
Commit
719e65c
ยท
verified ยท
1 Parent(s): a2fb4e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
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-kinyarwanda-asr"
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("# ASRwanda ๐ŸŽ™๏ธ Speech Recognition for Kinyarwanda Language ๐Ÿ‡ท๐Ÿ‡ผ")
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 ASRwanda, a Transformer-based automatic speech recognition (ASR) system for Kinyarwanda language.
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>