Spaces:
Runtime error
Runtime error
Allen Park
commited on
Commit
·
1861169
1
Parent(s):
87d4d46
get rid of first and last character of combined string
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def model_call(question, document, answer):
|
|
| 105 |
print("RESPONSE FROM CLIENT:", response)
|
| 106 |
hallucination, reasoning = parse_patronus_lynx_response(response.choices[0].text)
|
| 107 |
score = "FAIL" if hallucination else "PASS"
|
| 108 |
-
combined_reasoning = " ".join(reasoning)
|
| 109 |
return combined_reasoning, score
|
| 110 |
|
| 111 |
inputs = [
|
|
|
|
| 105 |
print("RESPONSE FROM CLIENT:", response)
|
| 106 |
hallucination, reasoning = parse_patronus_lynx_response(response.choices[0].text)
|
| 107 |
score = "FAIL" if hallucination else "PASS"
|
| 108 |
+
combined_reasoning = " ".join(reasoning)[1:-1]
|
| 109 |
return combined_reasoning, score
|
| 110 |
|
| 111 |
inputs = [
|