Spaces:
Runtime error
Runtime error
Commit
·
6353771
1
Parent(s):
36cd40f
fixed imports
Browse files- src/gen/gen_judgment.py +2 -1
src/gen/gen_judgment.py
CHANGED
|
@@ -6,7 +6,6 @@ import os
|
|
| 6 |
import re
|
| 7 |
|
| 8 |
import huggingface_hub
|
| 9 |
-
from envs import HF_HOME
|
| 10 |
from tqdm import tqdm
|
| 11 |
from utils import (
|
| 12 |
chat_completion_anthropic,
|
|
@@ -18,6 +17,8 @@ from utils import (
|
|
| 18 |
make_config,
|
| 19 |
)
|
| 20 |
|
|
|
|
|
|
|
| 21 |
|
| 22 |
def get_score(judgment, pattern, pairwise=True):
|
| 23 |
matches = pattern.findall(judgment)
|
|
|
|
| 6 |
import re
|
| 7 |
|
| 8 |
import huggingface_hub
|
|
|
|
| 9 |
from tqdm import tqdm
|
| 10 |
from utils import (
|
| 11 |
chat_completion_anthropic,
|
|
|
|
| 17 |
make_config,
|
| 18 |
)
|
| 19 |
|
| 20 |
+
from src.envs import HF_HOME
|
| 21 |
+
|
| 22 |
|
| 23 |
def get_score(judgment, pattern, pairwise=True):
|
| 24 |
matches = pattern.findall(judgment)
|