Grade an upload¶
Start grading a zip you sent earlier with Upload only. It returns straight away, and grading runs on our side. This is the second half of the Upload, then grade sample on the dashboard's API tab.
grade_job.py
# grade_job.py - start grading an upload sent earlier
# usage: python grade_job.py <job id>
import os
import sys
from centific import PhysicalAI
client = PhysicalAI(
api_key = os.environ["CENTIFIC_API_KEY"],
base_url = "https://humanoidiq-dev.centific.com",
)
job = client.qc.grade(sys.argv[1])
print("job id:", job.id) # the same id as the upload
print("status:", job.status) # 'queued' = in line for grading
How to use it¶
Pass the job id printed by Upload only:
Then follow it with Check status or Wait until finished.
Sample output¶
Each upload can be graded once
- Running this again on the same id gives
upload_already_used. - Running it before the upload has finished gives
upload_not_sealed.