Instructions to use Addax-Data-Science/TAS-BB-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Addax-Data-Science/TAS-BB-v1 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://Addax-Data-Science/TAS-BB-v1") - Notebooks
- Google Colab
- Kaggle
Upload inference.py
Browse files- inference.py +1 -1
inference.py
CHANGED
|
@@ -103,7 +103,7 @@ class ModelInference:
|
|
| 103 |
)
|
| 104 |
|
| 105 |
try:
|
| 106 |
-
with open(class_list_path, 'r') as f:
|
| 107 |
self.class_map = yaml.safe_load(f)
|
| 108 |
except Exception as e:
|
| 109 |
raise RuntimeError(f"Failed to load class_list.yaml: {e}") from e
|
|
|
|
| 103 |
)
|
| 104 |
|
| 105 |
try:
|
| 106 |
+
with open(class_list_path, 'r', encoding="utf-8") as f:
|
| 107 |
self.class_map = yaml.safe_load(f)
|
| 108 |
except Exception as e:
|
| 109 |
raise RuntimeError(f"Failed to load class_list.yaml: {e}") from e
|