great-ai/how-to-guides/using-service/using-service.md

363 B

How to use a GreatAI service

After creating a GreatAI service by wrapping your prediction function, it's time to do some prediction.

Let's use the following example:

from great_ai import GreatAI

@GreatAI.create
def type_safe_greeter(your_name: str) -> str:
    return f'Hi {your_name}'