Skip to content

Commit 542d228

Browse files
authored
Merge pull request #210 from roboflow/fix/enable-local-classification-inference
Local Classification Inference
2 parents d55f738 + bfa72c3 commit 542d228

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

roboflow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from roboflow.models import CLIPModel, GazeModel
1414
from roboflow.util.general import write_line
1515

16-
__version__ = "1.1.13"
16+
__version__ = "1.1.14"
1717

1818

1919
def check_key(api_key, model, notebook, num_retries=0):

roboflow/models/classification.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ def __init__(
5656
self.colors = {} if colors is None else colors
5757
self.preprocessing = {} if preprocessing is None else preprocessing
5858

59+
if local is not None:
60+
print("initalizing local classification model hosted at :" + local)
61+
self.base_url = local
62+
5963
def predict(self, image_path, hosted=False):
6064
"""
6165
Run inference on an image.

0 commit comments

Comments
 (0)