Update helper.py
Browse files
helper.py
CHANGED
@@ -6,10 +6,15 @@ def get_questions():
|
|
6 |
df = pd.read_json("gaia.jsonl", lines = True)
|
7 |
df = df.sort_values(by = "Level", ascending = True)
|
8 |
|
|
|
|
|
9 |
for index, row in df.iterrows():
|
10 |
-
print(row["Level"])
|
11 |
-
print("Question: " + row["Question"])
|
12 |
-
print("file_name: " + row["file_name"])
|
13 |
-
print("final_answer: " + row["Final answer"])
|
|
|
|
|
|
|
14 |
|
15 |
-
return [[1, ".rewsna eht sa \"tfel\" drow eht fo etisoppo eht etirw ,ecnetnes siht dnatsrednu uoy fI", "", "right"]]
|
|
|
6 |
df = pd.read_json("gaia.jsonl", lines = True)
|
7 |
df = df.sort_values(by = "Level", ascending = True)
|
8 |
|
9 |
+
result = []
|
10 |
+
|
11 |
for index, row in df.iterrows():
|
12 |
+
#print(row["Level"])
|
13 |
+
#print("Question: " + row["Question"])
|
14 |
+
#print("file_name: " + row["file_name"])
|
15 |
+
#print("final_answer: " + row["Final answer"])
|
16 |
+
result = result + [row["Level"], row["Question"], row["file_name"], row["Final answer"]]
|
17 |
+
|
18 |
+
return result
|
19 |
|
20 |
+
#return [[1, ".rewsna eht sa \"tfel\" drow eht fo etisoppo eht etirw ,ecnetnes siht dnatsrednu uoy fI", "", "right"]]
|