MCPcopy
hub / github.com/Huanshere/VideoLingo / config_input

Function config_input

core/st_utils/sidebar_setting.py:6–11  ·  view source on GitHub ↗

Generic config input handler

(label, key, help=None)

Source from the content-addressed store, hash-verified

4from core.utils import *
5
6def 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
13def page_setting():
14

Callers 1

page_settingFunction · 0.85

Calls 2

load_keyFunction · 0.85
update_keyFunction · 0.85

Tested by

no test coverage detected