KeenWoo commited on
Commit
3e66184
·
verified ·
1 Parent(s): ce0a2d4

Update evaluate.py

Browse files
Files changed (1) hide show
  1. evaluate.py +4 -4
evaluate.py CHANGED
@@ -58,14 +58,14 @@ def load_test_fixtures():
58
  global test_fixtures
59
  test_fixtures = []
60
  env_path = os.environ.get("TEST_FIXTURES_PATH", "").strip()
61
- candidates = [env_path] if env_path else ["conversation_test_fixtures_v8.jsonl", "conversation_test_fixtures_v5.jsonl"]
62
  path = next((p for p in candidates if p and os.path.exists(p)), None)
63
  if not path:
64
  print("Warning: No test fixtures file found for evaluation.")
65
  return
66
 
67
- # Use the corrected v8 file if available
68
- if "conversation_test_fixtures_v8.jsonl" in path:
69
  print(f"Using corrected test fixtures: {path}")
70
 
71
  with open(path, "r", encoding="utf-8") as f:
@@ -109,7 +109,7 @@ def run_comprehensive_evaluation(
109
  ):
110
  global test_fixtures
111
  if not test_fixtures:
112
- return "No test fixtures loaded. Please ensure conversation_test_fixtures_v8.jsonl exists.", [], []
113
 
114
  def _norm(label: str) -> str:
115
  label = (label or "").strip().lower()
 
58
  global test_fixtures
59
  test_fixtures = []
60
  env_path = os.environ.get("TEST_FIXTURES_PATH", "").strip()
61
+ candidates = [env_path] if env_path else ["conversation_test_fixtures_v10.jsonl", "conversation_test_fixtures_v8.jsonl"]
62
  path = next((p for p in candidates if p and os.path.exists(p)), None)
63
  if not path:
64
  print("Warning: No test fixtures file found for evaluation.")
65
  return
66
 
67
+ # Use the corrected v10 file if available
68
+ if "conversation_test_fixtures_v10.jsonl" in path:
69
  print(f"Using corrected test fixtures: {path}")
70
 
71
  with open(path, "r", encoding="utf-8") as f:
 
109
  ):
110
  global test_fixtures
111
  if not test_fixtures:
112
+ return "No test fixtures loaded. Please ensure conversation_test_fixtures_v10.jsonl exists.", [], []
113
 
114
  def _norm(label: str) -> str:
115
  label = (label or "").strip().lower()