Lakoc commited on
Commit
518e529
·
verified ·
1 Parent(s): b19aff6

Update leaderboard_server.py

Browse files
Files changed (1) hide show
  1. leaderboard_server.py +10 -0
leaderboard_server.py CHANGED
@@ -9,7 +9,17 @@ from txt_norm import get_text_norm
9
  # Constants
10
  REFERENCE_BASE_PATH = os.path.abspath("references") # e.g. ./references/single_channel/dataset1.json
11
  TASKS_METADATA_PATH = os.path.abspath("tasks_metadata.json")
 
12
 
 
 
 
 
 
 
 
 
 
13
 
14
  class LeaderboardServer:
15
  def __init__(self):
 
9
  # Constants
10
  REFERENCE_BASE_PATH = os.path.abspath("references") # e.g. ./references/single_channel/dataset1.json
11
  TASKS_METADATA_PATH = os.path.abspath("tasks_metadata.json")
12
+ import os
13
 
14
+ def list_files(startpath):
15
+ for root, dirs, files in os.walk(startpath):
16
+ level = root.replace(startpath, '').count(os.sep)
17
+ indent = ' ' * 4 * (level)
18
+ print('{}{}/'.format(indent, os.path.basename(root)))
19
+ subindent = ' ' * 4 * (level + 1)
20
+ for f in files:
21
+ print('{}{}'.format(subindent, f))
22
+ list_files("/data/submissions")
23
 
24
  class LeaderboardServer:
25
  def __init__(self):