yerevann commited on
Commit
431e082
β€’
1 Parent(s): 7be897c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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 + " "