Coco-18 commited on
Commit
97ad04f
·
verified ·
1 Parent(s): 53ae3c9

Update evaluate.py

Browse files
Files changed (1) hide show
  1. evaluate.py +1 -1
evaluate.py CHANGED
@@ -326,7 +326,7 @@ def handle_evaluation_request(request, reference_dir, output_dir, sample_rate):
326
  logger.warning(f"[{request_id}] ⚠️ Created missing reference directory: {reference_dir_path}")
327
  except Exception as e:
328
  logger.error(f"[{request_id}] ❌ Failed to create reference directory: {str(e)}")
329
- return jsonify({"error": f"Reference audio directory not found: {reference_locator}"}), 404
330
 
331
  # Check for reference files
332
  reference_files = glob.glob(os.path.join(reference_dir_path, "*.wav"))
 
326
  logger.warning(f"[{request_id}] ⚠️ Created missing reference directory: {reference_dir_path}")
327
  except Exception as e:
328
  logger.error(f"[{request_id}] ❌ Failed to create reference directory: {str(e)}")
329
+ return jsonify({"error": f"Reference audio directory not found: {reference_locator}"}), 404
330
 
331
  # Check for reference files
332
  reference_files = glob.glob(os.path.join(reference_dir_path, "*.wav"))