frank202 commited on
Commit
9af6886
1 Parent(s): 205a92e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -8,6 +8,7 @@ import gradio as gr
8
  p = pipeline("automatic-speech-recognition", model = "jonatasgrosman/wav2vec2-large-xlsr-53-chinese-zh-cn")
9
 
10
  def transcribe(audio, state=""):
 
11
  text = p(audio)["text"]
12
  state += text + " "
13
  return state, state
 
8
  p = pipeline("automatic-speech-recognition", model = "jonatasgrosman/wav2vec2-large-xlsr-53-chinese-zh-cn")
9
 
10
  def transcribe(audio, state=""):
11
+ time.sleep(2)
12
  text = p(audio)["text"]
13
  state += text + " "
14
  return state, state