Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,8 +28,8 @@ from huggingface_hub import hf_hub_download
|
|
| 28 |
|
| 29 |
# --- Global Variables ---
|
| 30 |
MAFFT_PATH = "/usr/bin/mafft" # Common path in Hugging Face Spaces
|
| 31 |
-
IQTREE_PATH = "/usr/bin/
|
| 32 |
-
CSV_PATH = "
|
| 33 |
MODEL_REPO = "GGproject10/best_boundary_aware_model"
|
| 34 |
|
| 35 |
# --- Logging Setup ---
|
|
@@ -117,7 +117,7 @@ def init_tree_analyzer():
|
|
| 117 |
# --- Tool Detection ---
|
| 118 |
def check_tool_availability():
|
| 119 |
mafft_cmd = shutil.which(MAFFT_PATH) or shutil.which("mafft")
|
| 120 |
-
iqtree_cmd = shutil.which(IQTREE_PATH) or shutil.which("
|
| 121 |
return bool(mafft_cmd), bool(iqtree_cmd), mafft_cmd, iqtree_cmd
|
| 122 |
|
| 123 |
# --- Installation Guide ---
|
|
|
|
| 28 |
|
| 29 |
# --- Global Variables ---
|
| 30 |
MAFFT_PATH = "/usr/bin/mafft" # Common path in Hugging Face Spaces
|
| 31 |
+
IQTREE_PATH = "/usr/bin/iqtree3" # Common path in Hugging Face Spaces
|
| 32 |
+
CSV_PATH = "f cleaned.csv" # Persistent storage in Hugging Face
|
| 33 |
MODEL_REPO = "GGproject10/best_boundary_aware_model"
|
| 34 |
|
| 35 |
# --- Logging Setup ---
|
|
|
|
| 117 |
# --- Tool Detection ---
|
| 118 |
def check_tool_availability():
|
| 119 |
mafft_cmd = shutil.which(MAFFT_PATH) or shutil.which("mafft")
|
| 120 |
+
iqtree_cmd = shutil.which(IQTREE_PATH) or shutil.which("iqtree3")
|
| 121 |
return bool(mafft_cmd), bool(iqtree_cmd), mafft_cmd, iqtree_cmd
|
| 122 |
|
| 123 |
# --- Installation Guide ---
|