smjain commited on
Commit
ef6e17a
·
verified ·
1 Parent(s): 063007b

Upload infertest.py

Browse files
Files changed (1) hide show
  1. infertest.py +2 -2
infertest.py CHANGED
@@ -110,8 +110,8 @@ def api_convert_voice():
110
 
111
  output_path = convert_voice(spk_id, input_audio_path, voice_transform)
112
  print(output_path)
113
- if os.path.exists(output_audio_path):
114
- return send_file(output_audio_path, as_attachment=True)
115
  else:
116
  return jsonify({"error": "File not found."}), 404
117
 
 
110
 
111
  output_path = convert_voice(spk_id, input_audio_path, voice_transform)
112
  print(output_path)
113
+ if os.path.exists(output_path):
114
+ return send_file(output_path, as_attachment=True)
115
  else:
116
  return jsonify({"error": "File not found."}), 404
117