Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|