Spaces:
Running
on
Zero
Running
on
Zero
lemonaddie
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,11 @@ import argparse
|
|
19 |
import os
|
20 |
import logging
|
21 |
|
|
|
|
|
|
|
|
|
|
|
22 |
import numpy as np
|
23 |
import torch
|
24 |
from PIL import Image
|
|
|
19 |
import os
|
20 |
import logging
|
21 |
|
22 |
+
try:
|
23 |
+
os.system('nvidia-smi')
|
24 |
+
except:
|
25 |
+
print('get cuda information failed!')
|
26 |
+
|
27 |
import numpy as np
|
28 |
import torch
|
29 |
from PIL import Image
|