Spaces:
Build error
Build error
Romeo David commited on
Commit Β·
74ecf43
1
Parent(s): cb73b2f
Add icons to buttons for improved user experience in analyzing_page and home
Browse files- pages/analyzing_page.py +1 -1
- pages/home.py +1 -1
pages/analyzing_page.py
CHANGED
|
@@ -141,7 +141,7 @@ def run_analysis():
|
|
| 141 |
|
| 142 |
st.success("π All analyses completed!") # Final success message
|
| 143 |
# --- Display Button After Completion ---
|
| 144 |
-
if st.button("View Results"):
|
| 145 |
st.switch_page("pages/output.py")
|
| 146 |
|
| 147 |
|
|
|
|
| 141 |
|
| 142 |
st.success("π All analyses completed!") # Final success message
|
| 143 |
# --- Display Button After Completion ---
|
| 144 |
+
if st.button("View Results", icon="π"):
|
| 145 |
st.switch_page("pages/output.py")
|
| 146 |
|
| 147 |
|
pages/home.py
CHANGED
|
@@ -46,7 +46,7 @@ class DigitalFootprintDashboard:
|
|
| 46 |
|
| 47 |
with col1:
|
| 48 |
|
| 49 |
-
self.upload_file_button = st.button("
|
| 50 |
if self.upload_file_button == True:
|
| 51 |
st.session_state["analyze"] = 'clicked'
|
| 52 |
unhide_button()
|
|
|
|
| 46 |
|
| 47 |
with col1:
|
| 48 |
|
| 49 |
+
self.upload_file_button = st.button("Sync Data", st.session_state['analyze'], icon="π")
|
| 50 |
if self.upload_file_button == True:
|
| 51 |
st.session_state["analyze"] = 'clicked'
|
| 52 |
unhide_button()
|