oza75 commited on
Commit
25354af
·
verified ·
1 Parent(s): 688f0fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -38,7 +38,8 @@ revision = None
38
  #language = "swahili"
39
 
40
  #model_checkpoint = "oza75/bm-whisper-large-turbo-v4"
41
- model_checkpoint = "oza75/bm-whisper-large-v3-base"
 
42
  # language = "sundanese"
43
 
44
  # Load the custom tokenizer designed for Bambara and the ASR model
@@ -121,7 +122,7 @@ def main():
121
  fn=transcribe,
122
  inputs=[
123
  gr.Audio(type="filepath", value=example_files[0][0]),
124
- gr.Radio(choices=["transcribe"], label="Task Type", value="transcribe"),
125
  gr.Dropdown(choices=LANGUAGES.keys(), label="Language", value="bambara"),
126
 
127
  ],
 
38
  #language = "swahili"
39
 
40
  #model_checkpoint = "oza75/bm-whisper-large-turbo-v4"
41
+ #model_checkpoint = "oza75/bm-whisper-large-v3-base"
42
+ model_checkpoint = "oza75/bm-whisper-large-v3-sft-1"
43
  # language = "sundanese"
44
 
45
  # Load the custom tokenizer designed for Bambara and the ASR model
 
122
  fn=transcribe,
123
  inputs=[
124
  gr.Audio(type="filepath", value=example_files[0][0]),
125
+ gr.Radio(choices=["transcribe", "translate"], label="Task Type", value="transcribe"),
126
  gr.Dropdown(choices=LANGUAGES.keys(), label="Language", value="bambara"),
127
 
128
  ],