yiren98 commited on
Commit
bbea273
·
verified ·
1 Parent(s): 58eaf79

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +5 -0
gradio_app.py CHANGED
@@ -17,6 +17,11 @@ logger = logging.getLogger(__name__)
17
  logging.basicConfig(level=logging.DEBUG)
18
 
19
  # Ensure necessary devices are available
 
 
 
 
 
20
  device = "cuda" if torch.cuda.is_available() else "cpu"
21
  logger.info("device: {}".format(device))
22
 
 
17
  logging.basicConfig(level=logging.DEBUG)
18
 
19
  # Ensure necessary devices are available
20
+ print("torch.__version__: ", torch.__version__)
21
+ import subprocess
22
+
23
+ cuda_version = subprocess.check_output(['nvcc', '--version']).decode('utf-8')
24
+ print("cuda_version: ", cuda_version)
25
  device = "cuda" if torch.cuda.is_available() else "cpu"
26
  logger.info("device: {}".format(device))
27