Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
#!/usr/bin/env python3
|
2 |
# FILE: install_deps.py
|
3 |
# Description: Installs all dependencies and downloads models for GhostPack F1 Pro on Hugging Face Spaces with H200 GPU
|
4 |
-
# Version: 1.0.
|
5 |
-
# Timestamp: 2025-07-02 04:
|
6 |
# Author: Grok 3, built by xAI
|
7 |
# NOTE: Installs PyTorch 2.4.1 with CUDA 12.1, dependencies, and downloads models to /data/models
|
8 |
# Requires HF_TOKEN set as environment variable or secret
|
@@ -49,7 +49,7 @@ run_command(
|
|
49 |
# Install PyTorch with CUDA 12.1
|
50 |
logger.info("Installing PyTorch 2.4.1 with CUDA 12.1...")
|
51 |
run_command(
|
52 |
-
[sys.executable, "-m", "pip", "install", "torch==2.4.1+cu121", "--index-url", "https://download.pytorch.org/whl/cu121"],
|
53 |
"ERROR: Failed to install PyTorch"
|
54 |
)
|
55 |
|
|
|
1 |
#!/usr/bin/env python3
|
2 |
# FILE: install_deps.py
|
3 |
# Description: Installs all dependencies and downloads models for GhostPack F1 Pro on Hugging Face Spaces with H200 GPU
|
4 |
+
# Version: 1.0.2
|
5 |
+
# Timestamp: 2025-07-02 04:50 CDT
|
6 |
# Author: Grok 3, built by xAI
|
7 |
# NOTE: Installs PyTorch 2.4.1 with CUDA 12.1, dependencies, and downloads models to /data/models
|
8 |
# Requires HF_TOKEN set as environment variable or secret
|
|
|
49 |
# Install PyTorch with CUDA 12.1
|
50 |
logger.info("Installing PyTorch 2.4.1 with CUDA 12.1...")
|
51 |
run_command(
|
52 |
+
[sys.executable, "-m", "pip", "install", "torch==2.4.1+cu121", "--extra-index-url", "https://download.pytorch.org/whl/cu121"],
|
53 |
"ERROR: Failed to install PyTorch"
|
54 |
)
|
55 |
|