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

get rid of first and last character of combined string

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = [