vyluong commited on
Commit
a8d398e
·
verified ·
1 Parent(s): 0cb7968

Update app/api/routes.py

Browse files
Files changed (1) hide show
  1. app/api/routes.py +2 -2
app/api/routes.py CHANGED
@@ -45,9 +45,9 @@ async def get_models():
45
  async def transcribe_audio(
46
  background_tasks: BackgroundTasks,
47
  file: UploadFile = File(..., description="Audio file to transcribe"),
48
- model: str = Form(default="PhoWhisper Large", description="Whisper model to use"),
49
  language: str = Form(default="vi", description="Language code"),
50
- backend: str = Form(default="w2v"),
51
  ):
52
  """
53
  Upload and transcribe an audio file.
 
45
  async def transcribe_audio(
46
  background_tasks: BackgroundTasks,
47
  file: UploadFile = File(..., description="Audio file to transcribe"),
48
+ model: str = Form(default="PhoWhisper Lora Finetuned", description="Whisper model to use"),
49
  language: str = Form(default="vi", description="Language code"),
50
+ backend: str = Form(default="whisper"),
51
  ):
52
  """
53
  Upload and transcribe an audio file.