drewThomasson commited on
Commit
f92248c
1 Parent(s): e19ca69

removed cuda thing frick it

Browse files
Files changed (1) hide show
  1. app.py +0 -32
app.py CHANGED
@@ -27,38 +27,6 @@ from TTS.tts.models.xtts import Xtts
27
 
28
  import requests
29
 
30
- import subprocess
31
-
32
-
33
- def install_cuda_if_gpu_detected():
34
- if torch.cuda.is_available():
35
- print("GPU detected! Proceeding with installation...")
36
- try:
37
- # Update package list and install necessary packages
38
- subprocess.run(['apt-get', 'update'], check=True)
39
- subprocess.run(['apt-get', 'install', '-y', 'software-properties-common'], check=True)
40
-
41
- # Add NVIDIA's package repositories
42
- subprocess.run(['apt-key', 'adv', '--fetch-keys', 'https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/3bf863cc.pub'], check=True)
43
- subprocess.run(['add-apt-repository', 'deb https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/ /'], check=True)
44
-
45
- # Update package list again
46
- subprocess.run(['apt-get', 'update'], check=True)
47
-
48
- # Install CUDA dependencies
49
- subprocess.run(['apt-get', 'install', '-y', 'libcudnn8', 'libcudnn8-dev'], check=True)
50
-
51
- print("Installation complete.")
52
- except subprocess.CalledProcessError as e:
53
- print(f"An error occurred during installation: {e}")
54
- else:
55
- print("No GPU detected. Skipping installation.")
56
-
57
-
58
-
59
- # Run the function
60
- install_cuda_if_gpu_detected()
61
-
62
 
63
 
64
  def download_file(url, destination):
 
27
 
28
  import requests
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
 
32
  def download_file(url, destination):