Generic config input handler
(label, key, help=None)
| 4 | from core.utils import * |
| 5 | |
| 6 | def config_input(label, key, help=None): |
| 7 | """Generic config input handler""" |
| 8 | val = st.text_input(label, value=load_key(key), help=help) |
| 9 | if val != load_key(key): |
| 10 | update_key(key, val) |
| 11 | return val |
| 12 | |
| 13 | def page_setting(): |
| 14 |
no test coverage detected