Sergidev commited on
Commit
d8bde42
1 Parent(s): 12653b8

v1 commented

Browse files
Files changed (1) hide show
  1. start.py +3 -3
start.py CHANGED
@@ -1,12 +1,12 @@
1
  import subprocess
2
 
3
  # Uninstall the existing llama-cpp-python package
4
- subprocess.run("pip uninstall -y llama-cpp-python", shell=True)
5
 
6
  # Install llama-cpp-python with CUDA support
7
- install_command = "CMAKE_ARGS='-DLLAMA_CUDA=on -DCUDA_PATH=/path/to/cuda -DCUDAToolkit_ROOT=/path/to/cuda -DCUDAToolkit_INCLUDE_DIR=/path/to/cuda/include -DCUDAToolkit_LIBRARY_DIR=/path/to/cuda/lib64' pip install llama-cpp-python"
8
 
9
- subprocess.run(install_command, shell=True)
10
 
11
  # Start the Hugging Face Space
12
  subprocess.run("uvicorn app:app --host 0.0.0.0 --port 7860", shell=True)
 
1
  import subprocess
2
 
3
  # Uninstall the existing llama-cpp-python package
4
+ #subprocess.run("pip uninstall -y llama-cpp-python", shell=True)
5
 
6
  # Install llama-cpp-python with CUDA support
7
+ # install_command = "CMAKE_ARGS='-DLLAMA_CUDA=on -DCUDA_PATH=/path/to/cuda -DCUDAToolkit_ROOT=/path/to/cuda -DCUDAToolkit_INCLUDE_DIR=/path/to/cuda/include -DCUDAToolkit_LIBRARY_DIR=/path/to/cuda/lib64' pip install llama-cpp-python"
8
 
9
+ #subprocess.run(install_command, shell=True)
10
 
11
  # Start the Hugging Face Space
12
  subprocess.run("uvicorn app:app --host 0.0.0.0 --port 7860", shell=True)