Hervé BREDIN
commited on
Commit
·
ffbe5dc
1
Parent(s):
5063194
fix: fix CUDA support
Browse files- app.py +8 -1
- requirements.txt +1 -0
app.py
CHANGED
@@ -21,9 +21,16 @@
|
|
21 |
# SOFTWARE.
|
22 |
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
import io
|
25 |
import base64
|
26 |
-
import torch
|
27 |
import numpy as np
|
28 |
import scipy.io.wavfile
|
29 |
from typing import Text
|
|
|
21 |
# SOFTWARE.
|
22 |
|
23 |
|
24 |
+
import torch
|
25 |
+
|
26 |
+
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
27 |
+
# True
|
28 |
+
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
29 |
+
# Tesla T4
|
30 |
+
|
31 |
+
|
32 |
import io
|
33 |
import base64
|
|
|
34 |
import numpy as np
|
35 |
import scipy.io.wavfile
|
36 |
from typing import Text
|
requirements.txt
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
--extra-index-url https://download.pytorch.org/whl/cu113
|
|
|
2 |
pyannote-audio==3.0.1
|
|
|
1 |
--extra-index-url https://download.pytorch.org/whl/cu113
|
2 |
+
torch
|
3 |
pyannote-audio==3.0.1
|