smjain commited on
Commit
7f50c8c
·
verified ·
1 Parent(s): 32ef857

Upload myinfer_latest.py

Browse files
Files changed (1) hide show
  1. myinfer_latest.py +2 -1
myinfer_latest.py CHANGED
@@ -129,7 +129,8 @@ def api_convert_voice():
129
  return jsonify({"error": "No selected file"}), 400
130
  created_files = []
131
  # Save the file to a temporary path
132
- unique_id = uuid.uuid4()
 
133
 
134
  filename = werkzeug.utils.secure_filename(file.filename)
135
  input_audio_path = os.path.join(tmp, f"{spk_id}_input_audio_{unique_id}.{filename.split('.')[-1]}")
 
129
  return jsonify({"error": "No selected file"}), 400
130
  created_files = []
131
  # Save the file to a temporary path
132
+ unique_id = str(uuid.uuid4())
133
+ print(unique_id)
134
 
135
  filename = werkzeug.utils.secure_filename(file.filename)
136
  input_audio_path = os.path.join(tmp, f"{spk_id}_input_audio_{unique_id}.{filename.split('.')[-1]}")