ai-forever commited on
Commit
9633c48
·
verified ·
1 Parent(s): 1bc8161

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,14 +3,14 @@ import gradio as gr
3
 
4
 
5
  from huggingface_hub import snapshot_download
 
6
 
7
  # Define repository and local directory
8
  repo_id = "ai-forever/GHOST-2.0-repo" # HF repo
9
  local_dir = "./" # Target local directory
10
- token = 'ZmFkErsuOmQmzamthRecuBoAhqYuvLiumF'
11
 
12
  # Download the entire repository
13
- snapshot_download(repo_id=repo_id, local_dir=local_dir, token=f'hf_{token}')
14
 
15
  print(f"Repository downloaded to: {local_dir}")
16
 
 
3
 
4
 
5
  from huggingface_hub import snapshot_download
6
+ import os
7
 
8
  # Define repository and local directory
9
  repo_id = "ai-forever/GHOST-2.0-repo" # HF repo
10
  local_dir = "./" # Target local directory
 
11
 
12
  # Download the entire repository
13
+ snapshot_download(repo_id=repo_id, local_dir=local_dir, token=os.getenv('HF_TOKEN'))
14
 
15
  print(f"Repository downloaded to: {local_dir}")
16