barbaroo commited on
Commit
6aaee7d
·
1 Parent(s): d25df8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ def transcribe(audio, state="", uploaded_audio=None):
9
  if uploaded_audio is not None:
10
  audio = uploaded_audio
11
  if not audio:
12
- return "Please input audio.", state # Return a meaningful message
13
  try:
14
  time.sleep(3)
15
  text = p(audio)["text"]
 
9
  if uploaded_audio is not None:
10
  audio = uploaded_audio
11
  if not audio:
12
+ return state, state # Return a meaningful message
13
  try:
14
  time.sleep(3)
15
  text = p(audio)["text"]