From d5ad8b15f010d21bd9441f24039f1ff566017833 Mon Sep 17 00:00:00 2001 From: YoanSallami Date: Tue, 5 Dec 2023 22:13:25 +0100 Subject: [PATCH] Fix CI errors --- hybridagi/hybridstores/program_memory/base.py | 2 +- hybridagi/interpreter/base.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hybridagi/hybridstores/program_memory/base.py b/hybridagi/hybridstores/program_memory/base.py index aad15ce..759f764 100755 --- a/hybridagi/hybridstores/program_memory/base.py +++ b/hybridagi/hybridstores/program_memory/base.py @@ -35,7 +35,7 @@ def verify_programs( programs: List[str]): try: self.playground.delete() - except: + except Exception: pass for idx, program in enumerate(programs): program_name = names[idx].replace(".cypher", "") diff --git a/hybridagi/interpreter/base.py b/hybridagi/interpreter/base.py index 4bda420..12ace2a 100755 --- a/hybridagi/interpreter/base.py +++ b/hybridagi/interpreter/base.py @@ -173,7 +173,7 @@ def perform_action( tool, prompt, pred) - scores.append(str(i+1)) + scores.append(score) prediction_score_pairs = zip(predictions, scores) sorted_predictions = sorted(prediction_score_pairs, key=lambda x: x[1], reverse=True) best_prediction, _ = sorted_predictions[0] @@ -280,7 +280,7 @@ def perform_evaluation( print("Evaluation:" +result) try: return float(score) - except: + except Exception: pass attemps += 1 raise ValueError(