Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ from transformers import pipeline
|
|
29 |
import gc
|
30 |
|
31 |
# Set CUDA device and enable cuDNN
|
32 |
-
torch.cuda.set_device(
|
33 |
torch.backends.cudnn.enabled = True
|
34 |
|
35 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
29 |
import gc
|
30 |
|
31 |
# Set CUDA device and enable cuDNN
|
32 |
+
torch.cuda.set_device(0)
|
33 |
torch.backends.cudnn.enabled = True
|
34 |
|
35 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|