Spaces:
Sleeping
Sleeping
Initial Draft
Browse files- pages/3_Mapping.py +7 -4
pages/3_Mapping.py
CHANGED
|
@@ -130,10 +130,13 @@ if col1.button("AI Suggest"):
|
|
| 130 |
new_data.append(row)
|
| 131 |
|
| 132 |
# Saving Mapping and displaying
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
|
|
|
|
|
|
|
|
|
| 137 |
|
| 138 |
# -- Save Button
|
| 139 |
if col2.button("Save"):
|
|
|
|
| 130 |
new_data.append(row)
|
| 131 |
|
| 132 |
# Saving Mapping and displaying
|
| 133 |
+
if new_data or len(mapping_df) <0:
|
| 134 |
+
st.session_state.mapping_df = pd.concat(
|
| 135 |
+
[ st.session_state.mapping_df, pd.DataFrame(new_data)],
|
| 136 |
+
ignore_index=True
|
| 137 |
+
)
|
| 138 |
+
else:
|
| 139 |
+
st.error("Unable to map Source and Destination Files")
|
| 140 |
|
| 141 |
# -- Save Button
|
| 142 |
if col2.button("Save"):
|