Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
-
import
|
2 |
-
|
|
|
|
|
|
|
3 |
|
4 |
import subprocess
|
5 |
import sys
|
|
|
1 |
+
import torch
|
2 |
+
if torch.cuda.is_available():
|
3 |
+
torch.cuda.set_device(torch.device('cpu'))
|
4 |
+
else:
|
5 |
+
torch.device('cpu')
|
6 |
|
7 |
import subprocess
|
8 |
import sys
|