smjain commited on
Commit
ff4d477
1 Parent(s): 58cd8c2

Upload myinfer_latest.py

Browse files
Files changed (1) hide show
  1. myinfer_latest.py +2 -2
myinfer_latest.py CHANGED
@@ -258,7 +258,7 @@ def api_convert_voice():
258
  spk_id = request.form['spk_id']+'.pth'
259
  print("speaker id path=",spk_id)
260
  voice_transform = request.form['voice_transform']
261
-
262
  # The file part
263
  if 'file' not in request.files:
264
  return jsonify({"error": "No file part"}), 400
@@ -268,7 +268,7 @@ def api_convert_voice():
268
 
269
  if file.content_length > 10 * 1024 * 1024:
270
  return jsonify({"error": "File size exceeds 6 MB"}), 400
271
-
272
 
273
  content_type_format_map = {
274
  'audio/mpeg': 'mp3',
 
258
  spk_id = request.form['spk_id']+'.pth'
259
  print("speaker id path=",spk_id)
260
  voice_transform = request.form['voice_transform']
261
+ print("before file access")
262
  # The file part
263
  if 'file' not in request.files:
264
  return jsonify({"error": "No file part"}), 400
 
268
 
269
  if file.content_length > 10 * 1024 * 1024:
270
  return jsonify({"error": "File size exceeds 6 MB"}), 400
271
+ print("after file access")
272
 
273
  content_type_format_map = {
274
  'audio/mpeg': 'mp3',