Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Azure CV PR nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhofmann committed Aug 11, 2023
1 parent e0d8811 commit 88a3f42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions llama_hub/tools/azure_cv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ You will need to set up an api key and computer vision instance using Azure, lea

## Usage

This tool has more extensive example usage documented in a Jupyter notebook [here](https://github.com/emptycrown/llama-hub/tree/main/llama_hub/tools/notebooks/azure_vision.ipynb)
This tool has a more extensive example usage documented in a Jupyter notebook [here](https://github.com/emptycrown/llama-hub/tree/main/llama_hub/tools/notebooks/azure_vision.ipynb)

Here's an example usage of the AzureCVToolSpec.

```python
from llama_hub.tools.google_search.base import AzureCVToolSpec
from llama_hub.tools.azure_cv.base import AzureCVToolSpec
from llama_index.agent import OpenAIAgent

tool_spec = AzureCVToolSpec(api_key='your-key', resource='your-resource')
Expand Down
2 changes: 1 addition & 1 deletion llama_hub/tools/azure_cv/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
CV_URL_TMPL = "https://{resource}.cognitiveservices.azure.com/computervision/imageanalysis:analyze"

class AzureCVToolSpec(BaseToolSpec):
"""Wolfram Alpha tool spec."""
"""Azure Cognitive Vision tool spec."""

spec_functions = ["process_image"]

Expand Down

0 comments on commit 88a3f42

Please sign in to comment.