Skip to content

Commit ff8df2d

Browse files
committed
Improved robustness of tutor init
1 parent 0a8d72c commit ff8df2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/evaluation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# Get the directory of the current file to build relative paths
1515
current_dir = os.path.dirname(os.path.abspath(__file__))
1616
config_test_path = os.path.join(current_dir, 'config_tutor_test.json')
17+
config_path = os.path.join(current_dir, 'config_tutor.json')
1718

1819
try:
1920
tutor = MathTutor(config_test_path)
@@ -22,7 +23,7 @@
2223
for _ in range(max_retries):
2324
sleep(1)
2425
try:
25-
tutor = MathTutor(config_test_path)
26+
tutor = MathTutor(config_path)
2627
except Exception as e:
2728
error(f"An error occurred during the initialization of the tutor: {e}")
2829
error(f"An error occurred during the initialization of the tutor: {e}")

0 commit comments

Comments
 (0)