Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ col1, col2 = st.columns([2,1])
|
|
| 49 |
with col1:
|
| 50 |
|
| 51 |
# Upload file from computer and not HuggingFace
|
| 52 |
-
uploaded_file = st.file_uploader("Import Data")
|
| 53 |
|
| 54 |
if uploaded_file is not None and not st.session_state['file_processed']:
|
| 55 |
# Check the file type based on the MIME type
|
|
@@ -69,8 +69,11 @@ with col1:
|
|
| 69 |
with col2:
|
| 70 |
csv = st.session_state['expenses'].to_csv(index=False).encode("utf-8")
|
| 71 |
|
|
|
|
|
|
|
|
|
|
| 72 |
st.download_button(
|
| 73 |
-
label = "
|
| 74 |
data = csv,
|
| 75 |
file_name = "expenses.csv",
|
| 76 |
mime = "text/csv"
|
|
|
|
| 49 |
with col1:
|
| 50 |
|
| 51 |
# Upload file from computer and not HuggingFace
|
| 52 |
+
uploaded_file = st.file_uploader("Import Expense Data")
|
| 53 |
|
| 54 |
if uploaded_file is not None and not st.session_state['file_processed']:
|
| 55 |
# Check the file type based on the MIME type
|
|
|
|
| 69 |
with col2:
|
| 70 |
csv = st.session_state['expenses'].to_csv(index=False).encode("utf-8")
|
| 71 |
|
| 72 |
+
st.write("")
|
| 73 |
+
st.write("")
|
| 74 |
+
|
| 75 |
st.download_button(
|
| 76 |
+
label = "Export Expenses as CSV",
|
| 77 |
data = csv,
|
| 78 |
file_name = "expenses.csv",
|
| 79 |
mime = "text/csv"
|