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

settings.py 519 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  1. from pathlib import Path
  2. import sys
  3. import helper
  4. # Get the absolute path of the current file
  5. file_path = Path(__file__).resolve()
  6. # Get the parent directory of the current file
  7. root_path = file_path.parent
  8. # Add the root path to the sys.path list if it is not already there
  9. if root_path not in sys.path:
  10. sys.path.append(str(root_path))
  11. # Get the relative path of the root directory with respect to the current working directory
  12. ROOT = root_path.relative_to(Path.cwd())
  13. # Model
  14. model_path = "model/model.pt"
Tip!

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

Comments

Loading...