Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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=
|
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 |
|