Spaces:
Running
Running
GSK-2829-fix-validate-error-after-refresh
#116
by
ZeroCommand
- opened
- io_utils.py +2 -0
- wordings.py +2 -2
io_utils.py
CHANGED
|
@@ -72,6 +72,8 @@ def read_column_mapping(uid):
|
|
| 72 |
config = yaml.load(f, Loader=yaml.FullLoader)
|
| 73 |
if config:
|
| 74 |
column_mapping = config.get("column_mapping", dict())
|
|
|
|
|
|
|
| 75 |
return column_mapping
|
| 76 |
|
| 77 |
|
|
|
|
| 72 |
config = yaml.load(f, Loader=yaml.FullLoader)
|
| 73 |
if config:
|
| 74 |
column_mapping = config.get("column_mapping", dict())
|
| 75 |
+
if column_mapping is None:
|
| 76 |
+
column_mapping = {}
|
| 77 |
return column_mapping
|
| 78 |
|
| 79 |
|
wordings.py
CHANGED
|
@@ -14,11 +14,11 @@ CONFIRM_MAPPING_DETAILS_FAIL_MD = """
|
|
| 14 |
<h1 style="text-align: center;">
|
| 15 |
Confirm Pre-processing Details
|
| 16 |
</h1>
|
| 17 |
-
We're unable to automatically map the input variable's name and output variable's labels of your dataset with the model's.
|
| 18 |
"""
|
| 19 |
|
| 20 |
CONFIRM_MAPPING_DETAILS_FAIL_RAW = """
|
| 21 |
-
We're unable to automatically map the input variable's name and output variable's labels of your dataset with the model's.
|
| 22 |
"""
|
| 23 |
|
| 24 |
CHECK_CONFIG_OR_SPLIT_RAW = """
|
|
|
|
| 14 |
<h1 style="text-align: center;">
|
| 15 |
Confirm Pre-processing Details
|
| 16 |
</h1>
|
| 17 |
+
We're unable to automatically map the input variable's name and output variable's labels of your dataset with the model's. Please manually check the mapping below.
|
| 18 |
"""
|
| 19 |
|
| 20 |
CONFIRM_MAPPING_DETAILS_FAIL_RAW = """
|
| 21 |
+
We're unable to automatically map the input variable's name and output variable's labels of your dataset with the model's. Please manually check the mapping below.
|
| 22 |
"""
|
| 23 |
|
| 24 |
CHECK_CONFIG_OR_SPLIT_RAW = """
|