dror44 commited on
Commit
1ef8a9e
·
1 Parent(s): fba21bb

hotfix - tsq table

Browse files
Files changed (1) hide show
  1. src/data_manager.py +2 -2
src/data_manager.py CHANGED
@@ -139,8 +139,8 @@ def get_random_example(test_type: str) -> Dict[str, str]:
139
  elif test_type in ["prompt_injections", "safety"]:
140
  result["text"] = example.get("text", "")
141
  elif test_type == "policy":
142
- result["input"] = example.get("input", "")
143
- result["output"] = example.get("output", "")
144
  result["assertion"] = example.get("assertion", "")
145
 
146
  return result
 
139
  elif test_type in ["prompt_injections", "safety"]:
140
  result["text"] = example.get("text", "")
141
  elif test_type == "policy":
142
+ result["input"] = example.get("input_text", "")
143
+ result["output"] = example.get("output_text", "")
144
  result["assertion"] = example.get("assertion", "")
145
 
146
  return result