https://github.com/boly38/pybird
Mvp study BioCLIP client for https://github.com/boly38/botEnSky/issues/57
https://github.com/boly38/pybird
Last synced: about 1 month ago
JSON representation
Mvp study BioCLIP client for https://github.com/boly38/botEnSky/issues/57
- Host: GitHub
- URL: https://github.com/boly38/pybird
- Owner: boly38
- Created: 2024-06-22T18:49:35.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-06-25T06:58:52.000Z (11 months ago)
- Last Synced: 2025-02-16T14:56:51.453Z (3 months ago)
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pyBird
pyBird is a simple API endpoint that rely on https://github.com/Imageomics/pybioclip to call [BioCLIP](https://imageomics.github.io/bioclip/)
## How to setup python
- cf. [dedicated readme](./PYTHON_SETUP.md)## How to run locally
Requirement : python
Command line only
````bash
make localTry
````
Note: the very-first time, hugging face cache is provisioned with openclip data `~/.cache/huggingface` (1.5GB)Local flask server and http invoke
````bash
make localStart
# and in another terminal
make localCall
````
- to call API, you could also rely on Intellij httpClient [predict.http](./httpClient/predict.http)## How to "secure" the endpoint
You could exige a private key in header by having `PYBIRD_PRIVATE_KEY` set on server side.
In that usecase, client must provide a `PRIVATE-KEY` with same value to avoid `403`When no `PYBIRD_PRIVATE_KEY` is set, there is no security check.