Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,9 @@ import time
|
|
| 5 |
|
| 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 + " "
|
|
|
|
| 5 |
|
| 6 |
asr = pipeline("automatic-speech-recognition", "YSU/aspram")
|
| 7 |
|
| 8 |
+
def transcribe(audio, state=None):
|
| 9 |
+
if state is None:
|
| 10 |
+
state = ""
|
| 11 |
# time.sleep(5)
|
| 12 |
text = asr(audio)["text"]
|
| 13 |
state += text + " "
|