DanbooruTagQuery / README.md
phonghh's picture
refactor: collapse app.py to import main from danbooru_deploy
4a77736
|
Raw
History Blame Contribute Delete
1.01 kB

A newer version of the Gradio SDK is available: 6.22.0

Upgrade
metadata
title: DanbooruTagQuery
emoji: 🏷️
colorFrom: indigo
colorTo: purple
sdk: gradio
sdk_version: 5.23.3
app_file: app.py
pinned: false

🏷️ DanbooruTagQuery

ONNX-powered anime image tagger. Upload an image or paste a URL to get predicted Danbooru tags with scores and categories.

Runs CPU-only by default. All logic (predictor, preprocessing, category, UI, hub download, model switcher) lives in the shared danbooru-deploy package — this app.py only imports its main() entry point (see realphongha/DanbooruTagQuery deploy/).

Local testing

# Use a local model file
python app.py /path/to/DanbooruTagQuery_b16_448x448.onnx

# Or point to a directory with .onnx + sidecar files
export MODEL_DIR=/path/to/models/
python app.py

Credits