Update util.py
Browse files
util.py
CHANGED
@@ -24,7 +24,7 @@ def read_file(file_path):
|
|
24 |
elif ext in (".json", ".jsonl"):
|
25 |
result = pd.read_json(file_path)
|
26 |
|
27 |
-
return result
|
28 |
|
29 |
def get_final_answer(model, question, answer):
|
30 |
prompt_template = """
|
|
|
24 |
elif ext in (".json", ".jsonl"):
|
25 |
result = pd.read_json(file_path)
|
26 |
|
27 |
+
return result.to_string()
|
28 |
|
29 |
def get_final_answer(model, question, answer):
|
30 |
prompt_template = """
|