Allen Park commited on
Commit
87d4d46
·
1 Parent(s): 2cdd4cb

combine array of sentence strings into one string

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- return reasoning, score
 
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"),