Spaces:
Sleeping
Sleeping
Commit
·
efb4a48
1
Parent(s):
a87af2b
Add system
Browse files- system/pledge_tracking.py +10 -10
- test.html +2 -2
system/pledge_tracking.py
CHANGED
|
@@ -87,11 +87,11 @@ def run_pipeline(claim, pledge_date, pledge_author, start_date, timestamp, user_
|
|
| 87 |
line_count = len(questions)
|
| 88 |
if update_fn:
|
| 89 |
update_fn(step_id, f"{line_count} relevant queries are generated, for example:\n"
|
| 90 |
-
f"1. {questions[0]}\n"
|
| 91 |
-
f"2. {questions[1]}\n"
|
| 92 |
-
f"3. {questions[2]}\n"
|
| 93 |
-
f"4. {questions[3]}\n"
|
| 94 |
-
f"5. {questions[4]}")
|
| 95 |
step_id+=1
|
| 96 |
|
| 97 |
else:
|
|
@@ -112,11 +112,11 @@ def run_pipeline(claim, pledge_date, pledge_author, start_date, timestamp, user_
|
|
| 112 |
line_count = len(questions)
|
| 113 |
if update_fn:
|
| 114 |
update_fn(step_id, f"relevant queries are generated, for example:\n"
|
| 115 |
-
f"1. {questions[0]}\n"
|
| 116 |
-
f"2. {questions[1]}\n"
|
| 117 |
-
f"3. {questions[2]}\n"
|
| 118 |
-
f"4. {questions[3]}\n"
|
| 119 |
-
f"5. {questions[4]}")
|
| 120 |
step_id+=1
|
| 121 |
|
| 122 |
|
|
|
|
| 87 |
line_count = len(questions)
|
| 88 |
if update_fn:
|
| 89 |
update_fn(step_id, f"{line_count} relevant queries are generated, for example:\n"
|
| 90 |
+
f" 1. {questions[0]}\n"
|
| 91 |
+
f" 2. {questions[1]}\n"
|
| 92 |
+
f" 3. {questions[2]}\n"
|
| 93 |
+
f" 4. {questions[3]}\n"
|
| 94 |
+
f" 5. {questions[4]}")
|
| 95 |
step_id+=1
|
| 96 |
|
| 97 |
else:
|
|
|
|
| 112 |
line_count = len(questions)
|
| 113 |
if update_fn:
|
| 114 |
update_fn(step_id, f"relevant queries are generated, for example:\n"
|
| 115 |
+
f" 1. {questions[0]}\n"
|
| 116 |
+
f" 2. {questions[1]}\n"
|
| 117 |
+
f" 3. {questions[2]}\n"
|
| 118 |
+
f" 4. {questions[3]}\n"
|
| 119 |
+
f" 5. {questions[4]}")
|
| 120 |
step_id+=1
|
| 121 |
|
| 122 |
|
test.html
CHANGED
|
@@ -462,8 +462,8 @@
|
|
| 462 |
|
| 463 |
try {
|
| 464 |
const timeRange = document.getElementById("time-range").value;
|
| 465 |
-
const pledgeDate = document.getElementById("pledge-date").value;
|
| 466 |
-
const pledgeAuthor = document.getElementById("pledge-author").value;
|
| 467 |
if (currentAbortController) currentAbortController.abort();
|
| 468 |
currentAbortController = new AbortController();
|
| 469 |
const signal = currentAbortController.signal;
|
|
|
|
| 462 |
|
| 463 |
try {
|
| 464 |
const timeRange = document.getElementById("time-range").value;
|
| 465 |
+
// const pledgeDate = document.getElementById("pledge-date").value;
|
| 466 |
+
// const pledgeAuthor = document.getElementById("pledge-author").value;
|
| 467 |
if (currentAbortController) currentAbortController.abort();
|
| 468 |
currentAbortController = new AbortController();
|
| 469 |
const signal = currentAbortController.signal;
|