Spaces:
Sleeping
Sleeping
Commit History
-
Fix image display in HF Space iframe: samesite=none cookie + global image cacheβ
Achim RabusHF Space runs the app in an iframe at hf.space embedded in huggingface.co. These have different eTLD+1, so samesite=lax cookies are not sent on cross-site requests β each API call arrived with a fresh session, meaning the image uploaded in session A was never found by the subsequent GET /api/image/{id} request (session B) β 404 β placeholder stayed visible. Fix: - Set samesite=none + secure=True when POLYSCRIPTOR_PROFILE=hf_space_demo - Add global_image_cache as cross-session fallback so image retrieval succeeds even if the session cookie is lost Also restores multi-target drop zone (viewerScroll + viewerPlaceholder) as secondary UX improvement from the earlier working version.92348d4
-
Deploy: TrOCR + Kraken engines, dynamic model lists, comparison panelβ
Achim Rabus- Add TrOCR and Kraken engines (CPU-only, no GPU needed) - Remove hf-space/ subdirectory from Space repo (content at root level) - Replace full requirements.txt with minimal HF-Space-specific one (torch, transformers, kraken, openai, anthropic, google-genai) - Dynamic commercial API model fetching (no hardcoded lists) - Updated Claude/Gemini/OpenAI fallback model lists - Add comparison panel JS component - Fix publish script: whitelist-based, clean deploy, no private files61b711a
-
Deploy Polyscriptor HTR Space demo
Achim Rabus78431ff