jhj0517 commited on
Commit
8d309f7
1 Parent(s): 3dc8d4e

check cuda and cudnn

Browse files
Files changed (2) hide show
  1. app.py +5 -0
  2. packages.txt +0 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import spaces
 
2
 
3
  import gradio as gr
4
  import os
@@ -22,6 +23,10 @@ class App:
22
  else:
23
  print("Use Open AI Whisper implementation")
24
  print(f"Device \"{self.whisper_inf.device}\" is detected")
 
 
 
 
25
  self.nllb_inf = NLLBInference()
26
  self.deepl_api = DeepLAPI()
27
 
 
1
  import spaces
2
+ import tensorflow as tf
3
 
4
  import gradio as gr
5
  import os
 
23
  else:
24
  print("Use Open AI Whisper implementation")
25
  print(f"Device \"{self.whisper_inf.device}\" is detected")
26
+ cuda_version = torch.version.cuda
27
+ cudnn_version = tf.sysconfig.get_build_info()["cuda"]["cudnn_version"]
28
+ print(f"cuDNN version: {cudnn_version}")
29
+ print(f"CUDA version: {cuda_version}")
30
  self.nllb_inf = NLLBInference()
31
  self.deepl_api = DeepLAPI()
32
 
packages.txt CHANGED
@@ -1 +0,0 @@
1
- nvidia-cuda-toolkit