MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / read_file

Function read_file

trainer/src/inference_server/main.py:81–83  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

79 # especially if you're grabbing just a piece at a time like SafeTensors
80 # does.
81 def read_file(file):
82 with open(file, "r") as f:
83 f.read()
84
85 with ThreadPoolExecutor() as executor:
86 for root, _, files in os.walk(directory):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected