Spaces:
Runtime error
Runtime error
anonymoussubmitter222
commited on
Commit
·
b9103df
1
Parent(s):
3485e08
build
Browse files
app.py
CHANGED
@@ -768,7 +768,7 @@ import gradio as gr
|
|
768 |
|
769 |
def treat_wav_file(file_mic,file_upload ,asr=mixer, device="cpu") :
|
770 |
if (file_mic is not None) and (file_upload is not None):
|
771 |
-
warn_output = "WARNING: You've uploaded an audio file and used the microphone. The recorded file from the microphone will be used and the uploaded
|
772 |
wav = file_mic
|
773 |
elif (file_mic is None) and (file_upload is None):
|
774 |
return "ERROR: You have to either use the microphone or upload an audio file"
|
|
|
768 |
|
769 |
def treat_wav_file(file_mic,file_upload ,asr=mixer, device="cpu") :
|
770 |
if (file_mic is not None) and (file_upload is not None):
|
771 |
+
warn_output = "WARNING: You've uploaded an audio file and used the microphone. The recorded file from the microphone will be used and the uploaded file will be discarded.\n"
|
772 |
wav = file_mic
|
773 |
elif (file_mic is None) and (file_upload is None):
|
774 |
return "ERROR: You have to either use the microphone or upload an audio file"
|