Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import time
|
|
6 |
asr = pipeline("automatic-speech-recognition", "YSU/aspram")
|
7 |
|
8 |
def transcribe(audio, state=""):
|
9 |
-
time.sleep(5)
|
10 |
text = asr(audio)["text"]
|
11 |
state += text + " "
|
12 |
print('chunk!')
|
@@ -22,6 +22,6 @@ gr.Interface(
|
|
22 |
"textbox",
|
23 |
"state"
|
24 |
],
|
25 |
-
live=
|
26 |
css='body {background-color: rgba(240, 200, 192)}',
|
27 |
).launch()
|
|
|
6 |
asr = pipeline("automatic-speech-recognition", "YSU/aspram")
|
7 |
|
8 |
def transcribe(audio, state=""):
|
9 |
+
# time.sleep(5)
|
10 |
text = asr(audio)["text"]
|
11 |
state += text + " "
|
12 |
print('chunk!')
|
|
|
22 |
"textbox",
|
23 |
"state"
|
24 |
],
|
25 |
+
live=False,
|
26 |
css='body {background-color: rgba(240, 200, 192)}',
|
27 |
).launch()
|