Hugging Face
Search models, datasets, users...
Ctrl K
Models
Datasets
Spaces
Buckets
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
thesis-sd3a
/
digital-art-api
Like
1
Sleeping
App
Files
Files
Community
4
Fetching metadata from the HF Docker repository...
main
digital-art-api
162 kB
Ctrl+K
Ctrl+K
3 contributors
History:
41 commits
Ruzzel Mendoza
allow origins on web app deployment urls
682dadb
2 months ago
api
fallback legacy
2 months ago
config
asd
2 months ago
lib
whash, phash, and dhash weight tuning
2 months ago
scripts
asd
2 months ago
tests
fallback legacy
2 months ago
.gitignore
602 Bytes
Phase 4: baseline calibration + calibrated_confidence - scripts/calibrate_baseline.py: offline script (not wired to API) that cross-pairs registered artworks from Supabase (or a --from-json dump) through the consensus pipeline and persists config/calibration.json - lib/phash: load_calibration()/calibrated_confidence()/plagiarism_threshold(); percentile-table interpolation with normal-CDF tails, identity fallback until calibrated; compare_hash_sets now returns calibrated_confidence + calibration_loaded - ran against live DB: 13 artworks / 78 unrelated pairs. Result: legacy scores unrelated pairs 56.7-72.3% (reproduces reported false positives); new consensus scores all 78 pairs 0.0 (0/78 block agreements; best unrelated block distance min 17.7 vs STRICT_MATCH_DISTANCE 12) - threshold: degenerate baseline (stddev 0) -> documented rule threshold = best unrelated score + 5 = 5.0; switches to p99 once the catalog yields a spread - constants revisited vs data (follow-up brief item 4): STRICT_MATCH_DISTANCE=12 supported by 17.7+ gap; MIN_BLOCK_STDDEV=5 unverifiable until DB rows carry entropy (kept); prefilter cutoff validated in Phase 5 - tests: percentile interpolation, tail extrapolation/clamping, identity fallback, threshold lookup, compare_hash_sets field presence
3 months ago
Dockerfile
430 Bytes
docker file
8 months ago
README.md
75 Bytes
docker file
8 months ago
RESPONSE_STRUCTURE_AUDIT.md
24.5 kB
fallback legacy
2 months ago
conftest.py
143 Bytes
Phase 1: entropy filtering for block matching - add block_entropy() (stddev of preprocessed grayscale block) and tunable MIN_BLOCK_STDDEV (env-overridable, default 5.0) - tag each block hash dict with its entropy score in generate_block_hashes - compare_blocks excludes pairs where either block is flat/low-detail; falls back to all blocks with low_content_warning when an image has no content - propagate content_blocks_used/low_content_warning through compare_hash_sets - legacy DB rows without entropy stay eligible (backward compat) - add pytest scaffolding and entropy-filtering tests
3 months ago
main.py
666 Bytes
allow origins on web app deployment urls
2 months ago
pytest.ini
27 Bytes
Phase 1: entropy filtering for block matching - add block_entropy() (stddev of preprocessed grayscale block) and tunable MIN_BLOCK_STDDEV (env-overridable, default 5.0) - tag each block hash dict with its entropy score in generate_block_hashes - compare_blocks excludes pairs where either block is flat/low-detail; falls back to all blocks with low_content_warning when an image has no content - propagate content_blocks_used/low_content_warning through compare_hash_sets - legacy DB rows without entropy stay eligible (backward compat) - add pytest scaffolding and entropy-filtering tests
3 months ago
requirements.txt
630 Bytes
Add pytest to requirements (rewrite as UTF-8) + RESPONSE_STRUCTURE_AUDIT.md - requirements.txt: rewrite the UTF-16 pip-freeze as clean UTF-8 (content unchanged) and add pytest==9.1.1 - RESPONSE_STRUCTURE_AUDIT.md: frontend migration reference documenting every change to POST /plagiarism/check/web and POST /plagiarism/compare: additive-only field set (raw_similarity, raw_similarity_legacy [transitional], calibrated_confidence, transform_consistency, content_blocks_used, low_content_warning + compare-only calibration_loaded, background_coincidence_suppressed, dominant_transform + hashes.blocks.*.entropy), old vs new JSON examples, flagging threshold derivation (p99 rule; current degenerate-baseline value 5.0), behavior changes (top-5 ordering, best_match by calibrated_confidence)
3 months ago
router.py
478 Bytes
Clean Deployment for Hugging Face
8 months ago
test_main.http
156 Bytes
Clean Deployment for Hugging Face
8 months ago