linhkid91 commited on
Commit
e3e24ea
·
1 Parent(s): 9df54fe
Files changed (1) hide show
  1. src/relevancy.py +1 -1
src/relevancy.py CHANGED
@@ -48,7 +48,7 @@ def post_process_chat_gpt_response(paper_data, response, threshold_score=8):
48
  for line in json_items if "relevancy score" in line.lower()]
49
  except Exception as e:
50
  pprint.pprint([re.sub(pattern, "", line) for line in json_items if "relevancy score" in line.lower()])
51
- print(e)
52
  raise RuntimeError("failed")
53
  pprint.pprint(score_items)
54
  scores = []
 
48
  for line in json_items if "relevancy score" in line.lower()]
49
  except Exception as e:
50
  pprint.pprint([re.sub(pattern, "", line) for line in json_items if "relevancy score" in line.lower()])
51
+ print(e) #linh edit, test
52
  raise RuntimeError("failed")
53
  pprint.pprint(score_items)
54
  scores = []