Spaces:
Sleeping
Sleeping
devjas1
commited on
Commit
·
c58845b
1
Parent(s):
df8f4dc
fix(results): Refactor results column rendering to streamline batch results display
Browse files- modules/ui_components.py +2 -7
modules/ui_components.py
CHANGED
@@ -391,21 +391,16 @@ def render_input_column():
|
|
391 |
|
392 |
|
393 |
def render_results_column():
|
394 |
-
#
|
395 |
is_batch_mode = st.session_state.get("batch_mode", False)
|
396 |
has_batch_results = "batch_results" in st.session_state
|
397 |
|
398 |
if is_batch_mode and has_batch_results:
|
399 |
-
#
|
400 |
-
st.markdown("##### Batch Analysis Results")
|
401 |
-
batch_results = st.session_state["batch_results"]
|
402 |
-
display_batch_results(batch_results)
|
403 |
-
|
404 |
ResultsManager.display_results_table()
|
405 |
|
406 |
elif st.session_state.get("inference_run_once", False) and not is_batch_mode:
|
407 |
st.markdown("##### Analysis Results")
|
408 |
-
|
409 |
# Get data from session state
|
410 |
x_raw = st.session_state.get("x_raw")
|
411 |
y_raw = st.session_state.get("y_raw")
|
|
|
391 |
|
392 |
|
393 |
def render_results_column():
|
394 |
+
# Get the current mode and check for batch results
|
395 |
is_batch_mode = st.session_state.get("batch_mode", False)
|
396 |
has_batch_results = "batch_results" in st.session_state
|
397 |
|
398 |
if is_batch_mode and has_batch_results:
|
399 |
+
# THEN render the main interactive dashboard from ResultsManager
|
|
|
|
|
|
|
|
|
400 |
ResultsManager.display_results_table()
|
401 |
|
402 |
elif st.session_state.get("inference_run_once", False) and not is_batch_mode:
|
403 |
st.markdown("##### Analysis Results")
|
|
|
404 |
# Get data from session state
|
405 |
x_raw = st.session_state.get("x_raw")
|
406 |
y_raw = st.session_state.get("y_raw")
|