MAS-AI-0000 commited on
Commit
21abb82
Β·
verified Β·
1 Parent(s): 8eaaeee

Update textPreprocess.py

Browse files
Files changed (1) hide show
  1. textPreprocess.py +3 -2
textPreprocess.py CHANGED
@@ -12,11 +12,12 @@ if current_dir not in sys.path:
12
 
13
  try:
14
  from detree.inference import Detector
15
- except ImportError:
16
  # Fallback if detree is not found (e.g. during initial setup check)
17
- print("Warning: 'detree' package not found. Please ensure the 'detree' folder is in the same directory.")
18
  Detector = None
19
 
 
20
  # ── 1) Configuration ────────────────────────────────────────────────────────────
21
  REPO_ID = "MAS-AI-0000/Authentica"
22
  TEXT_SUBFOLDER = "Lib/Models/Text" # where config.json/model.safetensors live in the repo
 
12
 
13
  try:
14
  from detree.inference import Detector
15
+ except ImportError as e:
16
  # Fallback if detree is not found (e.g. during initial setup check)
17
+ print(f"Warning: 'detree' package not found. Error: {e}")
18
  Detector = None
19
 
20
+
21
  # ── 1) Configuration ────────────────────────────────────────────────────────────
22
  REPO_ID = "MAS-AI-0000/Authentica"
23
  TEXT_SUBFOLDER = "Lib/Models/Text" # where config.json/model.safetensors live in the repo