Spaces:
Runtime error
Runtime error
Update gradio_app.py
Browse files- gradio_app.py +5 -0
gradio_app.py
CHANGED
@@ -17,6 +17,11 @@ logger = logging.getLogger(__name__)
|
|
17 |
logging.basicConfig(level=logging.DEBUG)
|
18 |
|
19 |
# Ensure necessary devices are available
|
|
|
|
|
|
|
|
|
|
|
20 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
21 |
logger.info("device: {}".format(device))
|
22 |
|
|
|
17 |
logging.basicConfig(level=logging.DEBUG)
|
18 |
|
19 |
# Ensure necessary devices are available
|
20 |
+
print("torch.__version__: ", torch.__version__)
|
21 |
+
import subprocess
|
22 |
+
|
23 |
+
cuda_version = subprocess.check_output(['nvcc', '--version']).decode('utf-8')
|
24 |
+
print("cuda_version: ", cuda_version)
|
25 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
26 |
logger.info("device: {}".format(device))
|
27 |
|