Spaces:
Build error
Build error
jjz5463 commited on
Commit ·
c222873
1
Parent(s): c3c50fa
record result update
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ def chat(user_input, history):
|
|
| 120 |
synthetic_tasks = load_dataset(human_result_url, app_name, split='train')
|
| 121 |
incomplete_tasks = synthetic_tasks.filter(is_task_incomplete_idx, with_indices=True,)
|
| 122 |
if len(incomplete_tasks) > 0:
|
| 123 |
-
incomplete_task_index = incomplete_tasks['
|
| 124 |
synthetic_tasks = synthetic_tasks.map(
|
| 125 |
lambda example, idx: {
|
| 126 |
"task_completed": task_completed if idx == incomplete_task_index else example["task_completed"],
|
|
@@ -152,7 +152,7 @@ def give_up():
|
|
| 152 |
# Find the first incomplete task
|
| 153 |
incomplete_tasks = synthetic_tasks.filter(is_task_incomplete_idx, with_indices=True,)
|
| 154 |
if len(incomplete_tasks) > 0:
|
| 155 |
-
incomplete_task_index = incomplete_tasks['
|
| 156 |
|
| 157 |
# Update the dataset to mark the task as abandoned
|
| 158 |
synthetic_tasks = synthetic_tasks.map(
|
|
|
|
| 120 |
synthetic_tasks = load_dataset(human_result_url, app_name, split='train')
|
| 121 |
incomplete_tasks = synthetic_tasks.filter(is_task_incomplete_idx, with_indices=True,)
|
| 122 |
if len(incomplete_tasks) > 0:
|
| 123 |
+
incomplete_task_index = incomplete_tasks['"__index"'][0]
|
| 124 |
synthetic_tasks = synthetic_tasks.map(
|
| 125 |
lambda example, idx: {
|
| 126 |
"task_completed": task_completed if idx == incomplete_task_index else example["task_completed"],
|
|
|
|
| 152 |
# Find the first incomplete task
|
| 153 |
incomplete_tasks = synthetic_tasks.filter(is_task_incomplete_idx, with_indices=True,)
|
| 154 |
if len(incomplete_tasks) > 0:
|
| 155 |
+
incomplete_task_index = incomplete_tasks['"__index"'][0]
|
| 156 |
|
| 157 |
# Update the dataset to mark the task as abandoned
|
| 158 |
synthetic_tasks = synthetic_tasks.map(
|