Spaces:
Sleeping
Sleeping
Commit History
-
Resolve HF Spaces gradio version conflictβ
HF Spaces builds its runtime based on README.md's sdk_version frontmatter field and raises a version-conflict build error when requirements.txt also lists gradio β sdk_version always wins on HF's side and the conflict surfaces before pip is even invoked. Two changes: - README.md: sdk_version 4.44.1 -> 4.31.5 to match our intent (4.44.1 ships gradio_client 1.3.0 with the jinja cache + additionalProperties schema regressions we hit earlier). - requirements.txt: drop the `gradio==4.31.5` line entirely so HF only sees the sdk_version declaration. Kept the huggingface_hub upper bound because gradio 4.x still imports HfFolder, which was removed in huggingface_hub 1.0. Local runs are unaffected: gradio 4.31.5 is still resolvable from other installers.7b3a08d -
Fix HF Spaces launch: pin gradio==4.31.5 and bind 0.0.0.0β
Two errors on the HF Space build: 1. TypeError: unhashable type: 'dict' β a jinja2 template cache bug in gradio 4.44.1 / gradio_client 1.3.0. The earlier app-side monkey-patch covered the additionalProperties:false branch but not this one. Downgrading to gradio==4.31.5 (ships gradio_client 0.16.4, predates both regressions) is the cleanest fix; the monkey-patch stays in place as harmless dead code in case anyone bumps the pin later. 2. ValueError: When localhost is not accessible, a shareable link must be created β Gradio binds to 127.0.0.1 by default, which is not reachable from the HF Spaces container network. Passing server_name="0.0.0.0" lets the Space's reverse proxy reach it.242f528 -
Shorten HF Spaces short_description to <=60 charsβ
HF Spaces rejected the push with: short_description length must be less than or equal to 60 "Zero-shot P&ID graph extraction with Claude Opus 4.6 vs PID2Graph GT" was 68 chars; trimming the trailing "vs PID2Graph GT" gets it to 52.96a476a -
Merge HF Space starter (keep our README, pick up .gitattributes)
ed5daf1 -
initial commit
Unverified signature7fee00f -
Add HF Spaces YAML frontmatter and ANTHROPIC_API_KEY instructionsβ
- README gains the Gradio SDK frontmatter (sdk_version 4.44.1, python 3.10, app_file app.py) so HF Spaces can auto-build. - Prepends a prominent note explaining that the Space needs ANTHROPIC_API_KEY registered under Settings β Variables and secrets, and how to do the equivalent locally (.env or shell export). - Surfaces rough per-run cost so reviewers know what a demo call bills.5c4f7a1 -
Initial commit: PID2Graph Γ Claude VLM evaluation + Gradio demoβ
Zero-shot P&ID graph extraction pipeline (semantic equipment + pipe connectivity) built on Claude Opus 4.6 vision, benchmarked against the PID2Graph OPEN100 subset, and wrapped in a Gradio demo with three preset samples. - pid2graph_eval/: Pydantic schema, graphml loader + semantic collapse, structured-outputs VLM extractor (temperature=0), bbox-distance tiled merge with seam-artifact filter, node/edge P/R/F1 metrics, CLI. - app.py: Gradio Blocks demo β preset picker, tile toggle, NetworkX bbox-based visualization of pred vs GT, per-run metrics table. Ships with a workaround for the gradio_client 1.3.0 bool-schema bug. - samples/: 3 OPEN100 diagrams (small/medium/large) with ground truth.59fa244