Spaces:
Running
Running
rmm
commited on
Commit
·
18a41f5
1
Parent(s):
a5ced3e
fix: remove highlighting for completion, not valid before v1.41.0
Browse files- basic markdown colouring doesn't support using :primary[<text>] in our
version, so the code gets messy for an 'icing' feature.
- src/utils/workflow_ui.py +1 -4
src/utils/workflow_ui.py
CHANGED
@@ -8,10 +8,7 @@ def refresh_progress_display() -> None:
|
|
8 |
num_states = st.session_state.workflow_fsm.num_states - 1
|
9 |
current_state_index = st.session_state.workflow_fsm.current_state_index
|
10 |
current_state_name = st.session_state.workflow_fsm.current_state
|
11 |
-
|
12 |
-
if current_state_index == num_states: # highlight that we finished
|
13 |
-
colour = 'green'
|
14 |
-
status = f":{colour}[*Progress: {current_state_index}/{num_states}. Current: {current_state_name}.*]"
|
15 |
|
16 |
st.session_state.disp_progress[0].markdown(status)
|
17 |
st.session_state.disp_progress[1].progress(current_state_index/num_states)
|
|
|
8 |
num_states = st.session_state.workflow_fsm.num_states - 1
|
9 |
current_state_index = st.session_state.workflow_fsm.current_state_index
|
10 |
current_state_name = st.session_state.workflow_fsm.current_state
|
11 |
+
status = f"*Progress: {current_state_index}/{num_states}. Current: {current_state_name}.*"
|
|
|
|
|
|
|
12 |
|
13 |
st.session_state.disp_progress[0].markdown(status)
|
14 |
st.session_state.disp_progress[1].progress(current_state_index/num_states)
|