Spaces:
Sleeping
Sleeping
Commit
·
da9a784
1
Parent(s):
602a998
Add system
Browse files
system/pledge_tracking.py
CHANGED
@@ -106,7 +106,7 @@ def run_pipeline(claim, pledge_date, pledge_author, start_date, timestamp, user_
|
|
106 |
)
|
107 |
idx = suggestion_meta["index"]
|
108 |
qa_lines = open(f"{qa_file_path}","r").readlines()[idx]
|
109 |
-
questions = {line["question"] for line in json.
|
110 |
line_count = len(questions)
|
111 |
if update_fn:
|
112 |
update_fn(step_id, f"relevant queries are generated, for example:\n"
|
|
|
106 |
)
|
107 |
idx = suggestion_meta["index"]
|
108 |
qa_lines = open(f"{qa_file_path}","r").readlines()[idx]
|
109 |
+
questions = {line["question"] for line in json.loads(qa_lines)["evidence"]}
|
110 |
line_count = len(questions)
|
111 |
if update_fn:
|
112 |
update_fn(step_id, f"relevant queries are generated, for example:\n"
|