diff --git a/great_ai/__main__.py b/great_ai/__main__.py index bea5f9c..ec4915d 100644 --- a/great_ai/__main__.py +++ b/great_ai/__main__.py @@ -184,7 +184,7 @@ def find_app(file_name: str) -> Optional[str]: logger.info(f"Found `{app_name}` to be the GreatAI app ") else: raise MissingArgumentError( - "GreatAI app could not be found, make sure to use `@GreatAI.deploy` on your prediction function" + "GreatAI app could not be found, make sure to use `@GreatAI.create` on your prediction function" ) return f"{file_name}:{app_name}.app" diff --git a/great_ai/helper/assert_function_is_not_finalised.py b/great_ai/helper/assert_function_is_not_finalised.py index 08da383..0d6f950 100644 --- a/great_ai/helper/assert_function_is_not_finalised.py +++ b/great_ai/helper/assert_function_is_not_finalised.py @@ -6,8 +6,8 @@ from .get_function_metadata_store import get_function_metadata_store def assert_function_is_not_finalised(func: Callable) -> None: error_message = ( - "The outer-most (first) decorator has to be `@GreatAI.deploy`. " - + f"In the case of `{func.__name__}`, it is not: fix this by moving `@GreatAI.deploy` to the top." + "The outer-most (first) decorator has to be `@GreatAI.create`. " + + f"In the case of `{func.__name__}`, it is not: fix this by moving `@GreatAI.create` to the top." ) if get_function_metadata_store(func).is_finalised: