Spaces:
Sleeping
Sleeping
Update textPreprocess.py
Browse files- 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.
|
| 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
|