Spaces:
Sleeping
Sleeping
devjas1
commited on
Commit
·
9e5cab1
1
Parent(s):
9a4db95
(FIX): remove redundant status messages and simplify button label in analysis form
Browse files
app.py
CHANGED
|
@@ -618,8 +618,6 @@ def main():
|
|
| 618 |
st.session_state["status_message"] = f"📁 File '{st.session_state['filename']}' ready for analysis"
|
| 619 |
st.session_state["status_type"] = "success"
|
| 620 |
|
| 621 |
-
if up:
|
| 622 |
-
st.markdown(f"✅ Loaded: {up.name}")
|
| 623 |
|
| 624 |
# ---- Sample tab ----
|
| 625 |
else:
|
|
@@ -639,7 +637,6 @@ def main():
|
|
| 639 |
st.info("No sample data available")
|
| 640 |
|
| 641 |
# ---- Status box ----
|
| 642 |
-
st.markdown("##### Status")
|
| 643 |
msg = st.session_state.get("status_message", "Ready")
|
| 644 |
typ = st.session_state.get("status_type", "info")
|
| 645 |
if typ == "success":
|
|
@@ -661,7 +658,7 @@ def main():
|
|
| 661 |
# === Run Analysis (form submit batches state) ===
|
| 662 |
with st.form("analysis_form", clear_on_submit=False):
|
| 663 |
submitted = st.form_submit_button(
|
| 664 |
-
"
|
| 665 |
type="primary",
|
| 666 |
disabled=not inference_ready,
|
| 667 |
)
|
|
|
|
| 618 |
st.session_state["status_message"] = f"📁 File '{st.session_state['filename']}' ready for analysis"
|
| 619 |
st.session_state["status_type"] = "success"
|
| 620 |
|
|
|
|
|
|
|
| 621 |
|
| 622 |
# ---- Sample tab ----
|
| 623 |
else:
|
|
|
|
| 637 |
st.info("No sample data available")
|
| 638 |
|
| 639 |
# ---- Status box ----
|
|
|
|
| 640 |
msg = st.session_state.get("status_message", "Ready")
|
| 641 |
typ = st.session_state.get("status_type", "info")
|
| 642 |
if typ == "success":
|
|
|
|
| 658 |
# === Run Analysis (form submit batches state) ===
|
| 659 |
with st.form("analysis_form", clear_on_submit=False):
|
| 660 |
submitted = st.form_submit_button(
|
| 661 |
+
"Run Analysis",
|
| 662 |
type="primary",
|
| 663 |
disabled=not inference_ready,
|
| 664 |
)
|