Spaces:
Sleeping
Sleeping
Download check_libs.py from d-e-e-k-11/CNN2: direct link, hf CLI and curl.
- Browser
- Download file 681 Bytes
-
https://huggingface.co/spaces/d-e-e-k-11/CNN2/resolve/main/check_libs.py
- Command line
-
hf download hf://spaces/d-e-e-k-11/CNN2/check_libs.py
-
curl -L -o check_libs.py https://huggingface.co/spaces/d-e-e-k-11/CNN2/resolve/main/check_libs.py
681 Bytes
| import sys | |
| print(f"Python version: {sys.version}") | |
| try: | |
| import tensorflow as tf | |
| print(f"TensorFlow version: {tf.__version__}") | |
| except Exception as e: | |
| print(f"TensorFlow import failed: {e}") | |
| try: | |
| import keras | |
| print(f"Keras version: {keras.__version__}") | |
| except Exception as e: | |
| print(f"Keras import failed: {e}") | |
| try: | |
| from tensorflow import keras as tf_keras | |
| print("from tensorflow import keras successful") | |
| except Exception as e: | |
| print(f"from tensorflow import keras failed: {e}") | |
| try: | |
| import torch | |
| print(f"PyTorch version: {torch.__version__}") | |
| except Exception as e: | |
| print(f"PyTorch import failed: {e}") | |