Spaces:
Running
Running
Upload infer_serverless.py
Browse files- infer_serverless.py +2 -1
infer_serverless.py
CHANGED
@@ -290,7 +290,8 @@ def api_convert_voice(filename,spk_id1,unique_id):
|
|
290 |
|
291 |
filename = werkzeug.utils.secure_filename(base_filename)
|
292 |
input_audio_path = os.path.join(tmp, f"{spk_id}_input_audio_{unique_id}.{filename.split('.')[-1]}")
|
293 |
-
file.save(input_audio_path)
|
|
|
294 |
|
295 |
#created_files.append(input_audio_path)
|
296 |
|
|
|
290 |
|
291 |
filename = werkzeug.utils.secure_filename(base_filename)
|
292 |
input_audio_path = os.path.join(tmp, f"{spk_id}_input_audio_{unique_id}.{filename.split('.')[-1]}")
|
293 |
+
#file.save(input_audio_path)
|
294 |
+
os.rename(local_file_path, input_audio_path)
|
295 |
|
296 |
#created_files.append(input_audio_path)
|
297 |
|