Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,10 +30,14 @@ def get_evaluation_questions():
|
|
30 |
try:
|
31 |
questions_list = json.loads(questions_str)
|
32 |
print("questions lst ",questions_list)
|
|
|
|
|
|
|
|
|
33 |
expected_list = json.loads(expected_str)
|
34 |
print("expected lst",expected_list)
|
35 |
except Exception as e:
|
36 |
-
print(f"Error parsing
|
37 |
return []
|
38 |
if len(questions_list) != len(expected_list):
|
39 |
print("Mismatch in length: questions list and expected answers list must have the same length.")
|
|
|
30 |
try:
|
31 |
questions_list = json.loads(questions_str)
|
32 |
print("questions lst ",questions_list)
|
33 |
+
except Exception as e:
|
34 |
+
print(f"Error parsing questions: {str(e)}")
|
35 |
+
return []
|
36 |
+
try:
|
37 |
expected_list = json.loads(expected_str)
|
38 |
print("expected lst",expected_list)
|
39 |
except Exception as e:
|
40 |
+
print(f"Error parsing solutions: {str(e)}")
|
41 |
return []
|
42 |
if len(questions_list) != len(expected_list):
|
43 |
print("Mismatch in length: questions list and expected answers list must have the same length.")
|