supermy commited on
Commit
4b7ac59
1 Parent(s): ae48067

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -14,7 +14,6 @@ pipe = pipeline(
14
  model=MODEL_NAME,
15
  chunk_length_s=30,
16
  device=device,
17
- language='Chinese',
18
  )
19
 
20
  langs = model_info(MODEL_NAME).cardData["language"]
@@ -34,7 +33,7 @@ def transcribe(microphone, file_upload):
34
 
35
  file = microphone if microphone is not None else file_upload
36
 
37
- text = pipe(file)["text"]
38
 
39
  return warn_output + text
40
 
 
14
  model=MODEL_NAME,
15
  chunk_length_s=30,
16
  device=device,
 
17
  )
18
 
19
  langs = model_info(MODEL_NAME).cardData["language"]
 
33
 
34
  file = microphone if microphone is not None else file_upload
35
 
36
+ text = pipe(file,language='Chinese')["text"]
37
 
38
  return warn_output + text
39