fruitpicker01 commited on
Commit
5cce71c
·
verified ·
1 Parent(s): 75c3a97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -1478,19 +1478,14 @@ def perform_checks(message, description, key_message):
1478
 
1479
  # Perform LLM checks group 1
1480
  for check_name, check_func in llm_checks_group1:
1481
- result = safe_check(check_func, message)
1482
  checks[check_name] = result
1483
  if result is False:
1484
  return checks # Stop on first failure
1485
 
1486
  # Perform remaining LLM checks
1487
  for check_name, check_func in llm_checks_group2:
1488
- if check_name == "no_contradictions":
1489
- result = safe_check(check_func, message, description)
1490
- elif check_name == "contains_key_message":
1491
- result = safe_check(check_func, message, key_message)
1492
- else:
1493
- result = safe_check(check_func, message)
1494
  checks[check_name] = result
1495
  if result is False:
1496
  return checks # Stop on first failure
 
1478
 
1479
  # Perform LLM checks group 1
1480
  for check_name, check_func in llm_checks_group1:
1481
+ result = safe_check(check_func, message, description, key_message)
1482
  checks[check_name] = result
1483
  if result is False:
1484
  return checks # Stop on first failure
1485
 
1486
  # Perform remaining LLM checks
1487
  for check_name, check_func in llm_checks_group2:
1488
+ result = safe_check(check_func, message, description, key_message)
 
 
 
 
 
1489
  checks[check_name] = result
1490
  if result is False:
1491
  return checks # Stop on first failure