Instructions to use Danswer/intent-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Danswer/intent-model 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://Danswer/intent-model") - Notebooks
- Google Colab
- Kaggle
Tag model as `transformers` instead of `keras`
Browse filesThis repo doesn't look like a Keras 3.0 model. This PR updates the model card metadata to make sure the model repo is correctly referenced as a `transformers` repo. This is useful for discoverability on the search page + for the `"Use this model"` code snippet.
If this repo is indeed compatible with Keras, it would still be good to add `transformers` as a tag + explain in the readme how to load the model with Keras. I can work on that if relevant.
Cheers! 🤗