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