Spaces:
Runtime error
Runtime error
Allen Park
commited on
Commit
·
9bd0a5d
1
Parent(s):
07651a1
fix(add red/green emojis to score)
Browse files
app.py
CHANGED
|
@@ -158,7 +158,7 @@ def model_call(question, document, answer, client_base_url):
|
|
| 158 |
)
|
| 159 |
print("RESPONSE FROM CLIENT:", response)
|
| 160 |
hallucination, reasoning = parse_patronus_lynx_response(response.choices[0].text)
|
| 161 |
-
score = "FAIL" if hallucination else "PASS"
|
| 162 |
combined_reasoning = " ".join(reasoning)[1:-1]
|
| 163 |
return combined_reasoning, score
|
| 164 |
|
|
|
|
| 158 |
)
|
| 159 |
print("RESPONSE FROM CLIENT:", response)
|
| 160 |
hallucination, reasoning = parse_patronus_lynx_response(response.choices[0].text)
|
| 161 |
+
score = "🔴 FAIL 🔴" if hallucination else "🟢 PASS 🟢"
|
| 162 |
combined_reasoning = " ".join(reasoning)[1:-1]
|
| 163 |
return combined_reasoning, score
|
| 164 |
|