Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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"]
|