Spaces:
Running
Running
Commit
·
8913751
1
Parent(s):
8cc7008
app.py: old signature request
Browse files
app.py
CHANGED
@@ -105,10 +105,13 @@ def main():
|
|
105 |
with gr.Row():
|
106 |
result_audio = gr.Audio()
|
107 |
|
108 |
-
def voice_conversion(src_from_mic_, src_from_file_, tgt_from_file_, api_key_, api_secret_, request_: gr.Request):
|
109 |
"""
|
110 |
helper function which checks where source come from
|
111 |
"""
|
|
|
|
|
|
|
112 |
src_ = None
|
113 |
if src_from_mic_:
|
114 |
src_ = src_from_mic_
|
|
|
105 |
with gr.Row():
|
106 |
result_audio = gr.Audio()
|
107 |
|
108 |
+
def voice_conversion(src_from_mic_, src_from_file_, tgt_from_file_, api_key_=None, api_secret_=None, request_: gr.Request=None):
|
109 |
"""
|
110 |
helper function which checks where source come from
|
111 |
"""
|
112 |
+
if api_key_ is None and api_secret_ is None and request_ is None:
|
113 |
+
logging.warning("Old signature request")
|
114 |
+
return
|
115 |
src_ = None
|
116 |
if src_from_mic_:
|
117 |
src_ = src_from_mic_
|