Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -70,9 +70,6 @@ def transcribe(Microphone, File_Upload, URL):
|
|
70 |
"The recorded file from the microphone will be used and the uploaded audio will be discarded.\n"
|
71 |
file = Microphone
|
72 |
|
73 |
-
elif (Microphone is None) and (File_Upload is None):
|
74 |
-
return "ERROR: You have to either use the microphone or upload an audio file"
|
75 |
-
|
76 |
elif Microphone is not None:
|
77 |
file = Microphone
|
78 |
|
|
|
70 |
"The recorded file from the microphone will be used and the uploaded audio will be discarded.\n"
|
71 |
file = Microphone
|
72 |
|
|
|
|
|
|
|
73 |
elif Microphone is not None:
|
74 |
file = Microphone
|
75 |
|