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

Function eva_video_list

src/utils.py:195–205  ·  view source on GitHub ↗
(knowledge_points, base_dir)

Source from the content-addressed store, hash-verified

193
194
195def eva_video_list(knowledge_points, base_dir):
196
197 video_list = []
198 for idx, kp in enumerate(knowledge_points):
199 folder, safe_name = get_output_dir(idx, kp, base_dir, get_safe_name=True)
200
201 # mp4 filename must be safe, the same
202 mp4_name = f"{safe_name}.mp4"
203 mp4_path = folder / mp4_name
204 video_list.append({"path": str(mp4_path), "knowledge_point": kp})
205 return video_list
206
207
208if __name__ == "__main__":

Callers 2

mainFunction · 0.90
evaluate_mainFunction · 0.90

Calls 1

get_output_dirFunction · 0.85

Tested by

no test coverage detected