Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def create_reranking_interface(task_data):
|
|
10 |
results = {"task_name": task_data["task_name"], "task_type": "reranking", "annotations": []}
|
11 |
completed_samples = {s["id"]: False for s in samples}
|
12 |
|
13 |
-
# Define helper functions before UI elements are created
|
14 |
def generate_sortable_html(candidates, existing_ranks=None):
|
15 |
"""Generate the HTML for the sortable list with up/down buttons."""
|
16 |
try:
|
|
|
10 |
results = {"task_name": task_data["task_name"], "task_type": "reranking", "annotations": []}
|
11 |
completed_samples = {s["id"]: False for s in samples}
|
12 |
|
13 |
+
# Define helper functions before the UI elements are created
|
14 |
def generate_sortable_html(candidates, existing_ranks=None):
|
15 |
"""Generate the HTML for the sortable list with up/down buttons."""
|
16 |
try:
|