yjernite HF Staff commited on
Commit
d60b6a1
·
verified ·
1 Parent(s): 10ba08d

Update ui/tab_testing.py

Browse files
Files changed (1) hide show
  1. ui/tab_testing.py +2 -2
ui/tab_testing.py CHANGED
@@ -108,9 +108,9 @@ def format_test_result(result: dict) -> tuple[str, dict, str, str, str]:
108
  policy_source = cat.get('policy_source', '')
109
 
110
  cat_text += f"- **Category:** {category_name}\n"
111
- cat_text += f"- **Explanation:** {reasoning_text}\n"
112
  if policy_source:
113
- cat_text += f"- **Policy Source:** {policy_source}\n"
114
  cat_text += "\n\n"
115
  else:
116
  cat_text = "*No categories found in response*\n\n"
 
108
  policy_source = cat.get('policy_source', '')
109
 
110
  cat_text += f"- **Category:** {category_name}\n"
111
+ cat_text += f" - **Explanation:** {reasoning_text}\n"
112
  if policy_source:
113
+ cat_text += f" - **Policy Source:** {policy_source}\n"
114
  cat_text += "\n\n"
115
  else:
116
  cat_text = "*No categories found in response*\n\n"