re-type commited on
Commit
79b76f1
·
verified ·
1 Parent(s): 24230e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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/iqtree2" # Common path in Hugging Face Spaces
32
- CSV_PATH = "/data/f_cleaned.csv" # Persistent storage in Hugging Face
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("iqtree2")
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 ---