from wetro import Wetrocloud
# Initialize the Wetrocloud client
client = Wetrocloud(api_key="your_api_key")
# Categorize content
categorize_response = client.categorize(
resource="match review: John Cena vs. The Rock.",
type="text",
json_schema={"label": "string"},
categories=["football", "coding", "entertainment", "basketball", "wrestling", "information"],
prompt="Where does this fall under?"
)
print(categorize_response)
print("\nThe text is categorized as:", categorize_response.response["label"])