Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ pipe = pipeline("automatic-speech-recognition", model="openai/whisper-base.en")
|
|
6 |
|
7 |
def transcribe(audio, state=""):
|
8 |
#print(audio)
|
9 |
-
|
10 |
text = pipe(audio)["text"]
|
11 |
state += text + " "
|
12 |
return state, state
|
|
|
6 |
|
7 |
def transcribe(audio, state=""):
|
8 |
#print(audio)
|
9 |
+
time.sleep(2)
|
10 |
text = pipe(audio)["text"]
|
11 |
state += text + " "
|
12 |
return state, state
|