diff --git a/README.md b/README.md index 551b552..d91de3f 100644 --- a/README.md +++ b/README.md @@ -378,3 +378,16 @@ Browse and discover AI models on the [OpenGradient Model Hub](https://hub.opengr - Visit our [documentation](https://docs.opengradient.ai/) for detailed guides - Join our [community](https://discord.gg/axammqTRDz) for support and discussions + + +## Error Handling + +When using ML inference functions, always wrap calls in try/except: + +```python +try: + result = client.inference.predict(model, input_data) + print(result) +except Exception as e: + print(f"Inference failed: {e}") +```