|
3 | 3 | from pathlib import Path |
4 | 4 |
|
5 | 5 | from dotenv import load_dotenv |
6 | | - |
7 | 6 | from oculus.framework.runner import EvaluationRunner |
8 | 7 | from oculus.integrations.fai_integration import create_fai_answer_function |
9 | 8 |
|
@@ -50,10 +49,10 @@ def main() -> int: |
50 | 49 |
|
51 | 50 | if not suite_path.exists(): |
52 | 51 | print(f"Error: Suite directory not found: {suite_path}", file=sys.stderr) |
53 | | - print(f"\nExpected structure:", file=sys.stderr) |
| 52 | + print("\nExpected structure:", file=sys.stderr) |
54 | 53 | print(f" {suite_path}/", file=sys.stderr) |
55 | | - print(f" questions/", file=sys.stderr) |
56 | | - print(f" question_0.json", file=sys.stderr) |
| 54 | + print(" questions/", file=sys.stderr) |
| 55 | + print(" question_0.json", file=sys.stderr) |
57 | 56 | return 1 |
58 | 57 |
|
59 | 58 | questions_dir = suite_path / "questions" |
@@ -90,15 +89,15 @@ def main() -> int: |
90 | 89 | return 0 |
91 | 90 |
|
92 | 91 | except ImportError as e: |
93 | | - print(f"\nError: Failed to import required modules", file=sys.stderr) |
| 92 | + print("\nError: Failed to import required modules", file=sys.stderr) |
94 | 93 | print(f"{e}", file=sys.stderr) |
95 | | - print(f"\nMake sure:", file=sys.stderr) |
96 | | - print(f" 1. FAI dependencies are installed (poetry install in servers/fai)", file=sys.stderr) |
97 | | - print(f" 2. PYTHONPATH includes the FAI source directory", file=sys.stderr) |
| 94 | + print("\nMake sure:", file=sys.stderr) |
| 95 | + print(" 1. FAI dependencies are installed (poetry install in servers/fai)", file=sys.stderr) |
| 96 | + print(" 2. PYTHONPATH includes the FAI source directory", file=sys.stderr) |
98 | 97 | return 1 |
99 | 98 |
|
100 | 99 | except Exception as e: |
101 | | - print(f"\nError: Evaluation failed", file=sys.stderr) |
| 100 | + print("\nError: Evaluation failed", file=sys.stderr) |
102 | 101 | print(f"{e}", file=sys.stderr) |
103 | 102 | import traceback |
104 | 103 |
|
|
0 commit comments