API endpoint

#1
by payamahv - opened

I am wondering how I Can make a call with API enpoint.

I am getting this error
"message": "/.sagemaker/mms/models/Acly__MobileSAM does not appear to have a file named config.json. Checkout \u0027https://huggingface.co//.sagemaker/mms/models/Acly__MobileSAM/None\u0027 for available files."

To clarify I deployed the model to Sagemaker and I have the endpoint. I am trying to send an image for sagemaker notebook. I am not sure how should I do that
this does not work

response = runtime.invoke_endpoint(EndpointName=ENDPOINT_NAME,
                                   ContentType='image/x-image',  #image/jpeg  image/x-image'
                                   Body=dataIm)

I'm not sure why you are asking me that? This repo just contains the models, there is nothing deployment related.
If you wanted to send an image you'd probably have to set that up somehow (if it's even supported by Sagemaker?)

Sign up or log in to comment