Spaces:
Sleeping
Sleeping
Commit History
-
feat(hf-space): Gradio diagnostic with Anthropic SDK + prompt caching (US4)β
apingali +1: Claude Opus 4.7 (1M context)US4 T031-T037 β the HuggingFace Space at gradio-apps/compounding-test/. A single-shot Gradio app that runs an AI-initiative description through the two-axis Berkshire Test and returns a scored writeup. Engine/site boundary preserved (Principle VIII): lives in gradio-apps/ only, no runtime fetch from the site, no build integration with the site. Files (per contracts/hf-space-interface.md): requirements.txt β gradio>=4.0, anthropic>=0.39, python-dotenv>=1.0, pytest>=8.0 .env.example β ANTHROPIC_API_KEY + MODEL_ID + MAX_DESCRIPTION_WORDS template app.py β parse_response (covered by 15 tests), diagnose() (validates 200-5000 word range, calls Anthropic with cache_control:ephemeral on the system block, parses + returns markdown + JSON tabs), build_demo() Gradio β¦60518c1