I have uploaded the sentence transformer model on my blob container. The idea is to load the model into a Python notebook from the blob container. To do this I do the following:
from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient
service = BlobServiceClient(account_url="https://<name_of_my_blob>.blob.core.windows.net/", credential=credential)
then point to the location on the container where my model is i.e.:
https://<name_of_my_blob>.blob.core.windows.net/fla-models/all-MiniLM-L6-v2
,
model = SentenceTransformer(service.get_blob_to_path('fla-models/all-MiniLM-L6-v2'))
But I get
AttributeError: 'BlobServiceClient' object has no attribute 'get_blob_to_path'
I have the latest installation of azure-storage-blob
. I wonder what am I doing wrong there and if the Azure lib is not longer supporting get_blob_to_path
method?