Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files- 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(
|
114 |
-
return send_file(
|
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 |
|