Spaces:
Sleeping
Sleeping
Download tests/units/test_model_loading.py from Diaure/Futurisys_API_ML: direct link, hf CLI and curl.
- Browser
- Download file 484 Bytes
-
https://huggingface.co/spaces/Diaure/Futurisys_API_ML/resolve/main/tests/units/test_model_loading.py
- Command line
-
hf download hf://spaces/Diaure/Futurisys_API_ML/tests/units/test_model_loading.py
-
curl -L -o test_model_loading.py https://huggingface.co/spaces/Diaure/Futurisys_API_ML/resolve/main/tests/units/test_model_loading.py
484 Bytes
| from App.predict import files_load, model, classes_mapping | |
| def test_model_loading(): | |
| # Appel initial | |
| try: | |
| files_load() | |
| except Exception as e: | |
| assert False, f"files_load() ne doit pas lever d'exception : {e}" | |
| # assert model is not None | |
| # assert classes_mapping is not None | |
| # Appel supplémentaire pour vérifier que rien ne casse | |
| # files_load() | |
| # assert model is not None | |
| # assert classes_mapping is not None | |
| assert True | |