smjain commited on
Commit
2dcaf1e
1 Parent(s): 5a065a9

Upload infertest.py

Browse files
Files changed (1) hide show
  1. infertest.py +1 -1
infertest.py CHANGED
@@ -116,7 +116,7 @@ def api_convert_voice():
116
 
117
  # Save the file to a temporary path
118
  filename = werkzeug.utils.secure_filename(file.filename)
119
- input_audio_path = os.path.join(TEMP_DIR, f"{spk_id}_input_audio.{filename.split('.')[-1]}")
120
  file.save(input_audio_path)
121
 
122
  output_path = convert_voice(spk_id, input_audio_path, voice_transform)
 
116
 
117
  # Save the file to a temporary path
118
  filename = werkzeug.utils.secure_filename(file.filename)
119
+ input_audio_path = os.path.join(tmp, f"{spk_id}_input_audio.{filename.split('.')[-1]}")
120
  file.save(input_audio_path)
121
 
122
  output_path = convert_voice(spk_id, input_audio_path, voice_transform)