gokaygokay commited on
Commit
241db12
·
verified ·
1 Parent(s): 452bc61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py CHANGED
@@ -13,6 +13,22 @@ def run_command(command):
13
  exit(1)
14
  return output.decode('utf-8')
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  def install_packages():
17
 
18
  # Clone the repository with submodules
 
13
  exit(1)
14
  return output.decode('utf-8')
15
 
16
+ # Download CUDA installer
17
+ download_command = "wget https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run"
18
+ result = run_command(download_command)
19
+ if result is None:
20
+ print("Failed to download CUDA installer.")
21
+ exit(1)
22
+
23
+ # Run CUDA installer
24
+ install_command = "sudo sh cuda_12.2.0_535.54.03_linux.run"
25
+ result = run_command(install_command)
26
+ if result is None:
27
+ print("Failed to run CUDA installer.")
28
+ exit(1)
29
+
30
+ print("CUDA installation process completed.")
31
+
32
  def install_packages():
33
 
34
  # Clone the repository with submodules