File size: 657 Bytes
93aed6f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from hume import HumeBatchClient
from hume.models.config import FaceConfig


newTimeOut = 3000
client = HumeBatchClient("<your-api-key-here>", timeout=newTimeOut)


files = ["/Users/jetlin/Desktop/HackMercedWorkshops/HumeRunthrough/humerunthroughpicture.jpg"]
configs = [FaceConfig(identify_faces=True)]
job = client.submit_job(urls=[], configs=configs, files=files)

print(job)
print("Running...")

job.await_complete()
job.download_predictions("predictions.json")
print("Predictions downloaded to predictions.json")

job.download_artifacts("artifacts.zip")
print("Artifacts downloaded to artifacts.zip")

print(job.get_predictions())