Spaces:
hysts
/
Running on Zero

Can this be used via Hugging Face API?

#1
by drcostco - opened

I see the api link at the bottom of the page, but it seems like there is not an endpoint set up. Can this be possible?

Hi, @drcostco
API is not enabled for this Space because I don't want this Space to get clogged up with API calls. But it's possible, and actually very easy to do. Here is the documentation on how to enable API. If you'd like to use BLIP-2 through API, maybe you can duplicate this Space and make changes to the code. For example, if you'd like to enable API for image captioning, you can add api_name here.

The API is disabled for this Space, but I added api_name. So now, if you duplicate this Space and change api_open=False to api_open=True here, you should be able to use the API.

hysts changed discussion status to closed

Sign up or log in to comment