Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
```