Spaces:
Sleeping
Sleeping
Commit ·
081ba44
1
Parent(s): 0540f42
Update app.py and translations.py
Browse files- app.py +6 -6
- utils/translations.py +1 -1
app.py
CHANGED
|
@@ -443,9 +443,9 @@ def show_sidebar():
|
|
| 443 |
pass
|
| 444 |
|
| 445 |
if can_analyze:
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
else:
|
| 450 |
# Disable button and show tooltip
|
| 451 |
st.button(t('nav_analyze'), use_container_width=True, disabled=True, help="Upload limit reached. Please view your analysis history instead.")
|
|
@@ -519,9 +519,9 @@ def show_home_page():
|
|
| 519 |
pass
|
| 520 |
|
| 521 |
if can_analyze:
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
|
| 525 |
else:
|
| 526 |
# Show disabled button with message
|
| 527 |
st.button(t('home_upload_files'), use_container_width=True, type="primary", disabled=True)
|
|
|
|
| 443 |
pass
|
| 444 |
|
| 445 |
if can_analyze:
|
| 446 |
+
if st.button(t('nav_analyze'), use_container_width=True):
|
| 447 |
+
st.session_state.current_page = 'upload'
|
| 448 |
+
st.rerun()
|
| 449 |
else:
|
| 450 |
# Disable button and show tooltip
|
| 451 |
st.button(t('nav_analyze'), use_container_width=True, disabled=True, help="Upload limit reached. Please view your analysis history instead.")
|
|
|
|
| 519 |
pass
|
| 520 |
|
| 521 |
if can_analyze:
|
| 522 |
+
if st.button(t('home_upload_files'), use_container_width=True, type="primary"):
|
| 523 |
+
st.session_state.current_page = 'upload'
|
| 524 |
+
st.rerun()
|
| 525 |
else:
|
| 526 |
# Show disabled button with message
|
| 527 |
st.button(t('home_upload_files'), use_container_width=True, type="primary", disabled=True)
|
utils/translations.py
CHANGED
|
@@ -147,7 +147,7 @@ TRANSLATIONS = {
|
|
| 147 |
'soil_type_limestone': 'Limestone soil, coral soil',
|
| 148 |
'soil_type_not_sure': 'Not sure',
|
| 149 |
|
| 150 |
-
|
| 151 |
'results_title': 'Analysis Results',
|
| 152 |
'results_no_results': 'No results available',
|
| 153 |
'results_header': 'Agricultural Analysis Results',
|
|
|
|
| 147 |
'soil_type_limestone': 'Limestone soil, coral soil',
|
| 148 |
'soil_type_not_sure': 'Not sure',
|
| 149 |
|
| 150 |
+
# Results
|
| 151 |
'results_title': 'Analysis Results',
|
| 152 |
'results_no_results': 'No results available',
|
| 153 |
'results_header': 'Agricultural Analysis Results',
|