docs: fix get_registry() usage (#1601)

Docs used `get_registry.get(...)` whereas what works is
`get_registry().get(...)`. Fixing the two instances I found. I tested
the open clip version by trying it locally in a Jupyter notebook.
This commit is contained in:
Philip Zeyliger
2024-09-05 13:18:24 -07:00
committed by GitHub
parent 4ee7225e91
commit 1d61717d0e
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ from lancedb.pydantic import LanceModel, Vector
from lancedb.embeddings import get_registry
db = lancedb.connect(tmp_path)
func = get_registry.get("imagebind").create()
func = get_registry().get("imagebind").create()
class ImageBindModel(LanceModel):
text: str

View File

@@ -20,7 +20,7 @@ from lancedb.pydantic import LanceModel, Vector
from lancedb.embeddings import get_registry
db = lancedb.connect(tmp_path)
func = get_registry.get("open-clip").create()
func = get_registry().get("open-clip").create()
class Images(LanceModel):
label: str