Tonic commited on
Commit
0f8fb6c
1 Parent(s): 4725fd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,9 +51,9 @@ def evaluate_hallucination(input1, input2):
51
 
52
  # Generate a label based on the score
53
  if score < 0.5:
54
- label = "🔴", f"The score is less than 0.5, indicating low risk. Score: {score:.2f}"
55
  else:
56
- label = "🟢", f"The score is 0.5 or higher, indicating higher risk. Score: {score:.2f}"
57
 
58
  return label
59
 
 
51
 
52
  # Generate a label based on the score
53
  if score < 0.5:
54
+ label = f"🔴 Low risk. Score: {score:.2f}"
55
  else:
56
+ label = f"🟢 Higher risk. Score: {score:.2f}"
57
 
58
  return label
59