Instructions to use kisambu/tuberculoscan with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use kisambu/tuberculoscan 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://kisambu/tuberculoscan") - Notebooks
- Google Colab
- Kaggle
Download application2/lib/api/models/importer.py from kisambu/tuberculoscan: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/kisambu/tuberculoscan/resolve/main/application2/lib/api/models/importer.py
- Command line
-
hf download hf://kisambu/tuberculoscan/application2/lib/api/models/importer.py
-
curl -L -o importer.py https://huggingface.co/kisambu/tuberculoscan/resolve/main/application2/lib/api/models/importer.py
332 Bytes
| from huggingface_hub import HfApi | |
| import os | |
| # Créer l'API | |
| api = HfApi() | |
| # Upload de tous les fichiers du répertoire courant | |
| api.upload_folder( | |
| folder_path=".", # Répertoire courant | |
| repo_id="kisambu/tuberculoscan", | |
| repo_type="model", | |
| commit_message="Upload du modèle de détection de tuberculose" | |
| ) |