Upload evaluation/benchmarks/dialogue_generation/eval.py with huggingface_hub
Browse files
evaluation/benchmarks/dialogue_generation/eval.py
CHANGED
|
@@ -22,11 +22,7 @@ def main():
|
|
| 22 |
print(f"Error: Cannot parse step number from '{checkpoint_name}'", file=sys.stderr)
|
| 23 |
sys.exit(1)
|
| 24 |
|
| 25 |
-
|
| 26 |
-
try:
|
| 27 |
-
config_data = config_init()
|
| 28 |
-
except NameError:
|
| 29 |
-
config_data = {'policy': 'default'}
|
| 30 |
|
| 31 |
result = get_benchmark_score("dialogue_generation", step_number)
|
| 32 |
if result is None:
|
|
|
|
| 22 |
print(f"Error: Cannot parse step number from '{checkpoint_name}'", file=sys.stderr)
|
| 23 |
sys.exit(1)
|
| 24 |
|
| 25 |
+
config_data = config_init()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
result = get_benchmark_score("dialogue_generation", step_number)
|
| 28 |
if result is None:
|