Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = "🔴
|
55 |
else:
|
56 |
-
label = "🟢
|
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 |
|