Skip to content

Commit

Permalink
Fix CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanSallami committed Dec 5, 2023
1 parent 5378dfa commit d5ad8b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hybridagi/hybridstores/program_memory/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")
Expand Down
4 changes: 2 additions & 2 deletions hybridagi/interpreter/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -280,7 +280,7 @@ def perform_evaluation(
print("Evaluation:" +result)
try:
return float(score)
except:
except Exception:
pass
attemps += 1
raise ValueError(
Expand Down

0 comments on commit d5ad8b1

Please sign in to comment.