masonadams22 commited on
Commit
b670090
·
1 Parent(s): 398a9e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -5,6 +5,11 @@ from datasets import load_dataset
5
 
6
  from transformers import SpeechT5ForTextToSpeech, SpeechT5HifiGan, SpeechT5Processor, pipeline
7
 
 
 
 
 
 
8
 
9
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
10
 
 
5
 
6
  from transformers import SpeechT5ForTextToSpeech, SpeechT5HifiGan, SpeechT5Processor, pipeline
7
 
8
+ print(f"Is CUDA available: {torch.cuda.is_available()}")
9
+ # True
10
+ print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
11
+ # Tesla T4
12
+
13
 
14
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
15