File size: 497 Bytes
0776746 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
---
library_name: keras
tags:
- keras
- example
- safe-mode-bypass
---
# Poisoned Keras Model Demo
This repository mimics a typical Keras model shared on the Hugging Face Hub.
Running `inference.py` imports `helpers`, which primes TensorFlow's internal
callback registry and patches `tf.saved_model.load`. Even with
`safe_mode=True`, calling the model prints `ENTRY_SCRIPT_SAFE_MODE_BYPASS` via `os.system`.
## Quick Start
```bash
pip install -r requirements.txt
python inference.py
```
|