Spaces:
Runtime error
Runtime error
Allen Park
commited on
Commit
·
87d4d46
1
Parent(s):
2cdd4cb
combine array of sentence strings into one string
Browse files
app.py
CHANGED
|
@@ -105,7 +105,8 @@ 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 |
-
|
|
|
|
| 109 |
|
| 110 |
inputs = [
|
| 111 |
gr.Textbox(label="Question"),
|
|
|
|
| 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 = [
|
| 112 |
gr.Textbox(label="Question"),
|