AdnanElAssadi commited on
Commit
ef12246
·
verified ·
1 Parent(s): 8788d4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: