Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,19 +28,14 @@ def install_packages():
|
|
| 28 |
|
| 29 |
# Upgrade pip
|
| 30 |
run_command("pip install --upgrade pip")
|
| 31 |
-
|
| 32 |
-
# Set environment variables for CUDA support
|
| 33 |
-
os.environ["CUDA_HOME"] = "/usr/local/cuda" # Adjust this path if needed
|
| 34 |
-
os.environ["CMAKE_ARGS"] = "-DGGML_CUDA=on -DCUDAToolkit_ROOT=/usr/local/cuda" # Add CUDAToolkit_ROOT
|
| 35 |
-
os.environ["FORCE_CMAKE"] = "1"
|
| 36 |
|
| 37 |
# Install all optional dependencies with CUDA support
|
| 38 |
-
run_command("pip install -e .
|
| 39 |
|
| 40 |
run_command("make clean")
|
| 41 |
|
| 42 |
# Reinstall the package with CUDA support
|
| 43 |
-
run_command('pip install -e .
|
| 44 |
|
| 45 |
# Install llama-cpp-agent
|
| 46 |
run_command("pip install llama-cpp-agent")
|
|
|
|
| 28 |
|
| 29 |
# Upgrade pip
|
| 30 |
run_command("pip install --upgrade pip")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
# Install all optional dependencies with CUDA support
|
| 33 |
+
run_command("pip install -e .") # Add --verbose for more detailed output
|
| 34 |
|
| 35 |
run_command("make clean")
|
| 36 |
|
| 37 |
# Reinstall the package with CUDA support
|
| 38 |
+
run_command('pip install -e .')
|
| 39 |
|
| 40 |
# Install llama-cpp-agent
|
| 41 |
run_command("pip install llama-cpp-agent")
|