session.py#

mlui.decorators.session.set_state(func)[source]#

Decorator to set the initial state for a Streamlit app.

Parameters:

func (Callable) – Function to wrap and execute.

Returns:

Wrapped function.

Return type:

Callable