Spaces:
Runtime error
Runtime error
Commit History
-
Add debug logging for received image data
Log type, length, and first 50 chars of the received base64 string to diagnose truncation or format issues. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>375fc07 -
Fix base64 data URI detection: use startsWith instead of comma check
The previous "," check could incorrectly split raw base64 strings. Added debug logging for base64 decode troubleshooting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>dcb3491 -
Change custom API path to /custom_api/ to avoid Gradio /api/ conflict
Gradio intercepts all /api/* routes when mounted at /. Use /custom_api/digitize_base64 instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>ced277b -
Use FastAPI + mount_gradio_app for custom /api/digitize_base64 endpoint
Replace Gradio-only approach with FastAPI app that: - Registers /api/digitize_base64 as a direct POST endpoint - Enables CORS for cross-origin requests from StarryDigitizer - Mounts Gradio UI at / via gr.mount_gradio_app - Runs via uvicorn for proper FastAPI routing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>f000791 -
Add base64 API endpoint for programmatic access
- digitize_chart now accepts both PIL Image and base64 strings - Add /api/digitize_base64 endpoint using gr.Textbox inputs so external clients can send base64 without Gradio file upload Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>cd3f7fd
-
Initial deploy: AutoLineDigitizer Gradio API for HuggingFace Spaces
- Gradio API server for chart line extraction - Models auto-downloaded from GitHub Releases at startup - Supports StarryDigitizer JSON/ZIP and raw JSON output - Includes LineFormer and ChartDete inference modules27c91ef