Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -124,7 +124,7 @@ if submit:
|
|
| 124 |
# -----------------------------
|
| 125 |
# SAVE RECORDS SECTION
|
| 126 |
# -----------------------------
|
| 127 |
-
|
| 128 |
if "input_df" in st.session_state:
|
| 129 |
file_path = "records.csv"
|
| 130 |
|
|
@@ -139,7 +139,6 @@ if submit:
|
|
| 139 |
updated_df.to_csv(file_path, index=False)
|
| 140 |
|
| 141 |
st.success("Record saved successfully!")
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
st.error("Record not saved...Thank for analysis")
|
| 145 |
|
|
|
|
| 124 |
# -----------------------------
|
| 125 |
# SAVE RECORDS SECTION
|
| 126 |
# -----------------------------
|
| 127 |
+
if st.button("Save Record"):
|
| 128 |
if "input_df" in st.session_state:
|
| 129 |
file_path = "records.csv"
|
| 130 |
|
|
|
|
| 139 |
updated_df.to_csv(file_path, index=False)
|
| 140 |
|
| 141 |
st.success("Record saved successfully!")
|
| 142 |
+
else:
|
| 143 |
+
st.error("Record not saved...Thank for analysis")
|
|
|
|
| 144 |
|