Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions inference/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def prepare_proof_verification(path, tar_path):
proof = extract_solution(proof).strip()
try:
self_eval_score = float([s.strip() for s in extract_boxed_answers(self_eval) if s.strip()][-1])
except:
except Exception:
self_eval_score = 0
except:
except Exception:
continue

item['self_eval'] = self_eval
Expand Down Expand Up @@ -128,7 +128,7 @@ def prepare_meta_verification(path, tar_path, drop_thought=True):
scores = [s.strip() for s in extract_boxed_answers(rating) if s.strip()]
try:
score = float(scores[-1])
except:
except Exception:
continue
if score > 0.75:
continue
Expand Down Expand Up @@ -307,7 +307,7 @@ def prepare_proof_refinement(
scores = [s.strip() for s in extract_boxed_answers(quality) if s.strip()]
try:
score = float(scores[-1])
except:
except Exception:
continue
if rating not in rating2quality:
rating2quality[rating] = []
Expand All @@ -330,7 +330,7 @@ def prepare_proof_refinement(
scores = [s.strip() for s in extract_boxed_answers(rating) if s.strip()]
try:
score = float(scores[-1])
except:
except Exception:
continue
if problem not in problem2proof2ratings:
problem2proof2ratings[problem] = {}
Expand Down