Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created October 21, 2021 18:33
Show Gist options
  • Save icebeam7/1a657740b6829abf96bcd38ee69d1fcf to your computer and use it in GitHub Desktop.
Save icebeam7/1a657740b6829abf96bcd38ee69d1fcf to your computer and use it in GitHub Desktop.
print ("Training...")
iteration = trainer.train_project(project.id)
while (iteration.status != "Completed"):
iteration = trainer.get_iteration(project.id, iteration.id)
print ("Training status: " + iteration.status)
print ("Waiting 25 seconds...")
time.sleep(25)
print("Training complete")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment