Spaces:
Running
Running
Rename demo.py to app.py
Browse files- demo.py → app.py +1 -1
demo.py → app.py
RENAMED
@@ -30,7 +30,7 @@ def get_data(task, dataset, example):
|
|
30 |
_example_path = EXAMPLE_PATH_MAPPING[example]
|
31 |
csv_file = os.path.join("data", _task_path, _dataset_path, "csv", f"{_example_path}.csv")
|
32 |
if not os.path.exists(csv_file):
|
33 |
-
return
|
34 |
read_data = pd.read_csv(csv_file)
|
35 |
data = pd.DataFrame(columns=COLUMN_NAMES)
|
36 |
|
|
|
30 |
_example_path = EXAMPLE_PATH_MAPPING[example]
|
31 |
csv_file = os.path.join("data", _task_path, _dataset_path, "csv", f"{_example_path}.csv")
|
32 |
if not os.path.exists(csv_file):
|
33 |
+
return None
|
34 |
read_data = pd.read_csv(csv_file)
|
35 |
data = pd.DataFrame(columns=COLUMN_NAMES)
|
36 |
|