24 lines
732 B
Python
24 lines
732 B
Python
import streamlit as st
|
|
from config.config import cycle_definitions
|
|
|
|
def section_parameters():
|
|
st.subheader(body='Parameters for the OKR')
|
|
|
|
# Requested Parameter - Number of Key Results
|
|
num_key_results = st.number_input(
|
|
label='Please provide the number of key results',
|
|
min_value=1,
|
|
max_value=5,
|
|
key='num_key_results',
|
|
value=3
|
|
)
|
|
|
|
# Requested Parameter - OKR Cycle
|
|
options = [f"{key} ({value})" for key, value in cycle_definitions.items()]
|
|
okr_cycle = st.segmented_control(
|
|
label="Please select the OKR cycle",
|
|
options=options,
|
|
selection_mode="single",
|
|
default=options[0]
|
|
)
|
|
st.session_state['okr_cycle'] = okr_cycle |