diff --git a/roboflow/config.py b/roboflow/config.py index dd4eed0d..4f683ddc 100644 --- a/roboflow/config.py +++ b/roboflow/config.py @@ -53,12 +53,12 @@ def get_conditional_configuration_variable(key, default): UNIVERSE_URL = get_conditional_configuration_variable("UNIVERSE_URL", "https://universe.roboflow.com") INSTANCE_SEGMENTATION_URL = get_conditional_configuration_variable( - "INSTANCE_SEGMENTATION_URL", "https://outline.roboflow.com" + "INSTANCE_SEGMENTATION_URL", "https://serverless.roboflow.com" ) SEMANTIC_SEGMENTATION_URL = get_conditional_configuration_variable( "SEMANTIC_SEGMENTATION_URL", "https://segment.roboflow.com" ) -OBJECT_DETECTION_URL = get_conditional_configuration_variable("OBJECT_DETECTION_URL", "https://detect.roboflow.com") +OBJECT_DETECTION_URL = get_conditional_configuration_variable("OBJECT_DETECTION_URL", "https://serverless.roboflow.com") CLIP_FEATURIZE_URL = get_conditional_configuration_variable("CLIP_FEATURIZE_URL", "CLIP FEATURIZE URL NOT IN ENV") OCR_URL = get_conditional_configuration_variable("OCR_URL", "OCR URL NOT IN ENV") diff --git a/roboflow/models/classification.py b/roboflow/models/classification.py index c482fdaf..191e3ece 100644 --- a/roboflow/models/classification.py +++ b/roboflow/models/classification.py @@ -51,7 +51,7 @@ def __init__( self.id = id self.name = name self.version = version - self.base_url = "https://classify.roboflow.com/" + self.base_url = "https://serverless.roboflow.com/" if self.name is not None and version is not None: self.__generate_url() diff --git a/roboflow/models/keypoint_detection.py b/roboflow/models/keypoint_detection.py index a0e86561..4b38eb88 100644 --- a/roboflow/models/keypoint_detection.py +++ b/roboflow/models/keypoint_detection.py @@ -49,7 +49,7 @@ def __init__( self.id = id self.name = name self.version = version - self.base_url = "https://detect.roboflow.com/" + self.base_url = "https://serverless.roboflow.com/" if self.name is not None and version is not None: self.__generate_url() diff --git a/roboflow/models/object_detection.py b/roboflow/models/object_detection.py index 9112c84d..559b2f2d 100644 --- a/roboflow/models/object_detection.py +++ b/roboflow/models/object_detection.py @@ -278,7 +278,7 @@ def predict( # type: ignore[override] def webcam( self, webcam_id=0, - inference_engine_url="https://detect.roboflow.com/", + inference_engine_url="https://serverless.roboflow.com/", within_jupyter=False, confidence=40, overlap=30, @@ -291,7 +291,7 @@ def webcam( Args: webcam_id (int): Webcam ID (default 0) - inference_engine_url (str): Inference engine address to use (default https://detect.roboflow.com) + inference_engine_url (str): Inference engine address to use (default https://serverless.roboflow.com) within_jupyter (bool): Whether or not to display the webcam within Jupyter notebook (default True) confidence (int): Confidence threshold for detections overlap (int): Overlap threshold for detections diff --git a/tests/models/test_instance_segmentation.py b/tests/models/test_instance_segmentation.py index 6c1dfc60..3d29f505 100644 --- a/tests/models/test_instance_segmentation.py +++ b/tests/models/test_instance_segmentation.py @@ -46,7 +46,7 @@ class TestInstanceSegmentation(unittest.TestCase): dataset_id = "test-123" version = "23" - api_url = f"https://outline.roboflow.com/{dataset_id}/{version}" + api_url = f"https://serverless.roboflow.com/{dataset_id}/{version}" _default_params = { "api_key": api_key,