Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ EXPECTED_TOKEN = os.environ.get("SUBMISSION_TOKEN")
|
|
14 |
|
15 |
|
16 |
def get_datasets_for_task(task):
|
17 |
-
path = os.path.join("references", task)
|
18 |
-
print(path, os.path.exists(path))
|
19 |
if not os.path.exists(path):
|
20 |
return []
|
21 |
return [f.replace(".json", "") for f in os.listdir(path) if f.endswith(".json")]
|
|
|
14 |
|
15 |
|
16 |
def get_datasets_for_task(task):
|
17 |
+
path = os.path.join("./references", task)
|
18 |
+
print(path, os.path.exists("./references"), os.path.exists(path))
|
19 |
if not os.path.exists(path):
|
20 |
return []
|
21 |
return [f.replace(".json", "") for f in os.listdir(path) if f.endswith(".json")]
|