Hpsoyl commited on
Commit
068458e
·
1 Parent(s): 9ff023d

FluoGen group

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -37,6 +37,7 @@ from cellpose import plot as cellpose_plot
37
  from huggingface_hub import snapshot_download
38
 
39
  # --- 0. Configuration & Constants ---
 
40
  # --- General ---
41
  MODEL_TITLE = "🔬 FluoGen: AI-Powered Fluorescence Microscopy Suite"
42
  MODEL_DESCRIPTION = """
@@ -55,7 +56,7 @@ SAVE_EXAMPLES = False
55
  # NOTE: All model paths are now relative.
56
  # Run the `copy_weights.py` script once to copy all necessary model files into this local directory.
57
  REPO_ID = "FluoGen-Group/FluoGen-demo-test-ckpts"
58
- MODELS_ROOT_DIR = snapshot_download(repo_id=REPO_ID) #"models_collection"
59
 
60
  # --- Tab 1: Mask-to-Image Config (Formerly Segmentation-to-Image) ---
61
  M2I_CONTROLNET_PATH = f"{MODELS_ROOT_DIR}/ControlNet_M2I/checkpoint-30000"
 
37
  from huggingface_hub import snapshot_download
38
 
39
  # --- 0. Configuration & Constants ---
40
+ hf_token = os.environ.get("HF_TOKEN")
41
  # --- General ---
42
  MODEL_TITLE = "🔬 FluoGen: AI-Powered Fluorescence Microscopy Suite"
43
  MODEL_DESCRIPTION = """
 
56
  # NOTE: All model paths are now relative.
57
  # Run the `copy_weights.py` script once to copy all necessary model files into this local directory.
58
  REPO_ID = "FluoGen-Group/FluoGen-demo-test-ckpts"
59
+ MODELS_ROOT_DIR = snapshot_download(repo_id=REPO_ID, token=hf_token) #"models_collection"
60
 
61
  # --- Tab 1: Mask-to-Image Config (Formerly Segmentation-to-Image) ---
62
  M2I_CONTROLNET_PATH = f"{MODELS_ROOT_DIR}/ControlNet_M2I/checkpoint-30000"