Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,11 +18,11 @@ def get_audio(url):
|
|
18 |
return audio_file
|
19 |
|
20 |
def transcribe(rec=None, file=None, url=""):
|
21 |
-
if rec
|
22 |
audio = rec
|
23 |
-
elif file
|
24 |
audio = file
|
25 |
-
elif url
|
26 |
audio = get_audio(url)
|
27 |
else:
|
28 |
return "Provide a recording or a file."
|
|
|
18 |
return audio_file
|
19 |
|
20 |
def transcribe(rec=None, file=None, url=""):
|
21 |
+
if rec != None:
|
22 |
audio = rec
|
23 |
+
elif file != None:
|
24 |
audio = file
|
25 |
+
elif url != "":
|
26 |
audio = get_audio(url)
|
27 |
else:
|
28 |
return "Provide a recording or a file."
|