MCPcopy Create free account
hub / github.com/Open-Quant/openquant / _load_model

Function _load_model

scripts/afml_mcp_server.py:77–81  ·  view source on GitHub ↗
(model_name: str)

Source from the content-addressed store, hash-verified

75
76
77def _load_model(model_name: str):
78 global _MODEL
79 if _MODEL is None:
80 _MODEL = load_sentence_transformer(model_name, _allow_online_fetch())
81 return _MODEL
82
83
84def _score_results(

Callers 1

_score_resultsFunction · 0.85

Calls 2

_allow_online_fetchFunction · 0.85

Tested by

no test coverage detected