Spaces:
Running
Running
Upload myinfer_latest.py
Browse files- myinfer_latest.py +1 -1
myinfer_latest.py
CHANGED
@@ -127,7 +127,7 @@ def api_convert_voice():
|
|
127 |
return jsonify({"error": "No selected file"}), 400
|
128 |
created_files = []
|
129 |
# Save the file to a temporary path
|
130 |
-
|
131 |
|
132 |
filename = werkzeug.utils.secure_filename(file.filename)
|
133 |
input_audio_path = os.path.join(tmp, f"{spk_id}_input_audio_{unique_id}.{filename.split('.')[-1]}")
|
|
|
127 |
return jsonify({"error": "No selected file"}), 400
|
128 |
created_files = []
|
129 |
# Save the file to a temporary path
|
130 |
+
unique_id = uuid.uuid4()
|
131 |
|
132 |
filename = werkzeug.utils.secure_filename(file.filename)
|
133 |
input_audio_path = os.path.join(tmp, f"{spk_id}_input_audio_{unique_id}.{filename.split('.')[-1]}")
|