MCPcopy Index your code
hub / github.com/showlab/Code2Video / make_mllm_api

Function make_mllm_api

src/eval_TQ.py:113–117  ·  view source on GitHub ↗
(video_path: Optional[str])

Source from the content-addressed store, hash-verified

111
112
113def make_mllm_api(video_path: Optional[str]) -> Callable[[str], str]:
114 if video_path:
115 return lambda prompt: _call_video_api(prompt, video_path)
116 else:
117 return lambda prompt: _call_text_api(prompt)
118
119
120class SelectiveKnowledgeUnlearning:

Callers 1

run_one_conceptFunction · 0.85

Calls 2

_call_video_apiFunction · 0.85
_call_text_apiFunction · 0.85

Tested by

no test coverage detected