Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#609 Ci fix

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:bugfix/infra-000_ci
1
2
3
4
5
6
7
8
9
  1. import os
  2. import pkg_resources
  3. try:
  4. PKG_CHECKPOINTS_DIR = pkg_resources.resource_filename("checkpoints", "")
  5. except Exception:
  6. os.makedirs(os.path.join(os.getcwd(), "checkpoints"), exist_ok=True)
  7. PKG_CHECKPOINTS_DIR = os.path.join(os.getcwd(), "checkpoints")
Discard
Tip!

Press p or to see the previous file or, n or to see the next file