MCPcopy Create free account
hub / github.com/SmartFlowAI/TheGodOfCookery / init_image_model

Function init_image_model

app.py:136–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134
135@st.cache_resource
136def init_image_model():
137 image_model_type = load_config('image', 'image_model_type')
138 image_model_config = load_config('image', 'image_model_config').get(image_model_type)
139 image_model = image_models[image_model_type](**image_model_config)
140 return image_model
141
142
143def text_to_image(prompt, image_model):

Callers 1

mainFunction · 0.85

Calls 1

load_configFunction · 0.90

Tested by

no test coverage detected