Instructions to use hoangthan/img-caption-demo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use hoangthan/img-caption-demo with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://hoangthan/img-caption-demo") - Notebooks
- Google Colab
- Kaggle
Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
|
@@ -7,7 +7,7 @@ import pickle
|
|
| 7 |
from PIL import Image
|
| 8 |
|
| 9 |
class PreTrainedPipeline():
|
| 10 |
-
def __init__(self, path=""):
|
| 11 |
|
| 12 |
self.model = keras.models.load_model(os.path.join(path, ""))
|
| 13 |
|
|
|
|
| 7 |
from PIL import Image
|
| 8 |
|
| 9 |
class PreTrainedPipeline():
|
| 10 |
+
def __init__(self, path="model"):
|
| 11 |
|
| 12 |
self.model = keras.models.load_model(os.path.join(path, ""))
|
| 13 |
|