Spaces:
Sleeping
Sleeping
Update evaluate.py
Browse files- evaluate.py +4 -2
evaluate.py
CHANGED
|
@@ -205,10 +205,11 @@ def load_test_fixtures():
|
|
| 205 |
# candidates = [env_path] if env_path else ["conversation_test_fixtures_v10.jsonl"]
|
| 206 |
# candidates = [env_path] if env_path else ["small_test_cases_v10.jsonl"]
|
| 207 |
# candidates = [env_path] if env_path else ["Test_Syn_Caregiving_Patient.jsonl"]
|
|
|
|
| 208 |
# candidates = [env_path] if env_path else ["Test_Syn_Factual.jsonl"]
|
| 209 |
# candidates = [env_path] if env_path else ["Test_Syn_Multi_Hop.jsonl"]
|
| 210 |
# candidates = [env_path] if env_path else ["Test_Syn_Gen_Chat.jsonl"]
|
| 211 |
-
candidates = [env_path] if env_path else ["
|
| 212 |
|
| 213 |
path = next((p for p in candidates if p and os.path.exists(p)), None)
|
| 214 |
if not path:
|
|
@@ -219,10 +220,11 @@ def load_test_fixtures():
|
|
| 219 |
# if "conversation_test_fixtures_v10.jsonl" in path:
|
| 220 |
# if "small_test_cases_v10.jsonl" in path:
|
| 221 |
# if "Test_Syn_Caregiving_Patient.jsonl" in path:
|
|
|
|
| 222 |
# if "Test_Syn_Factual.jsonl" in path:
|
| 223 |
# if "Test_Syn_Multi_Hop.jsonl" in path:
|
| 224 |
# if "Test_Syn_Gen_Chat.jsonl" in path:
|
| 225 |
-
if "
|
| 226 |
print(f"Using corrected test fixtures: {path}")
|
| 227 |
|
| 228 |
with open(path, "r", encoding="utf-8") as f:
|
|
|
|
| 205 |
# candidates = [env_path] if env_path else ["conversation_test_fixtures_v10.jsonl"]
|
| 206 |
# candidates = [env_path] if env_path else ["small_test_cases_v10.jsonl"]
|
| 207 |
# candidates = [env_path] if env_path else ["Test_Syn_Caregiving_Patient.jsonl"]
|
| 208 |
+
# candidates = [env_path] if env_path else ["Test_Syn_Caregiving_Caregiver.jsonl"]
|
| 209 |
# candidates = [env_path] if env_path else ["Test_Syn_Factual.jsonl"]
|
| 210 |
# candidates = [env_path] if env_path else ["Test_Syn_Multi_Hop.jsonl"]
|
| 211 |
# candidates = [env_path] if env_path else ["Test_Syn_Gen_Chat.jsonl"]
|
| 212 |
+
candidates = [env_path] if env_path else ["Test_Syn_Gen_Know.jsonl"]
|
| 213 |
|
| 214 |
path = next((p for p in candidates if p and os.path.exists(p)), None)
|
| 215 |
if not path:
|
|
|
|
| 220 |
# if "conversation_test_fixtures_v10.jsonl" in path:
|
| 221 |
# if "small_test_cases_v10.jsonl" in path:
|
| 222 |
# if "Test_Syn_Caregiving_Patient.jsonl" in path:
|
| 223 |
+
# if "Test_Syn_Caregiving_Caregiver.jsonl" in path:
|
| 224 |
# if "Test_Syn_Factual.jsonl" in path:
|
| 225 |
# if "Test_Syn_Multi_Hop.jsonl" in path:
|
| 226 |
# if "Test_Syn_Gen_Chat.jsonl" in path:
|
| 227 |
+
if "Test_Syn_Gen_Know.jsonl" in path:
|
| 228 |
print(f"Using corrected test fixtures: {path}")
|
| 229 |
|
| 230 |
with open(path, "r", encoding="utf-8") as f:
|