MCPcopy Create free account
hub / github.com/SalesforceAIResearch/perfcodegen / upload_file

Function upload_file

src/inference.py:1102–1108  ·  view source on GitHub ↗
(model, prefix, num)

Source from the content-addressed store, hash-verified

1100
1101
1102def upload_file(model, prefix, num):
1103 model = RemoteModel(model)
1104 ids = []
1105 for i in range(0, num):
1106 response = model.upload_file(f"{prefix}{i}.jsonl")
1107 ids.append(response.id)
1108 print(ids)
1109
1110def delete_file(model, ids):
1111 model = RemoteModel(model)

Callers

nothing calls this directly

Calls 2

upload_fileMethod · 0.95
RemoteModelClass · 0.90

Tested by

no test coverage detected