Spaces:
Runtime error
Runtime error
Commit History
-
fix(spaces): disable XSRF protection to allow file uploads
Sergio LeónHuggingFace Spaces serves apps in iframes, which breaks Streamlit's default XSRF/CORS protection causing 403 errors on file uploads. This is a known issue: https://discuss.streamlit.io/t/file-uploader-fails-on-huggingface-spaces Fix: - Add .streamlit/config.toml with enableXsrfProtection=false - Add same flags to Dockerfile CMD as explicit override XSRF is safe to disable here because: - The app has no authentication state to protect - Uploads only run analysis, no side effects - HF Space is rebuilt on every push (stateless)4ddad6b -
fix(demo): robust path resolution for demo data
Sergio LeónThe Consensus Analyzer was looking for demo data at the wrong path in the HF Spaces Docker container. The original logic assumed the page was 5 levels deep inside src/, but in Docker it's at /app/pages/. Now tries multiple candidate locations and picks the first that exists: - HF Spaces: pages/ at root → examples/ alongside - Local dev: src/dynafold_hub/ui/pages/ → walks up 5 levels - Working directory fallback - /app root (Docker) Fixes: 'Demo data not found at /examples/01_consensus_demo' on HF Spacedfadfb8 -
fix: place pages/ at root for Streamlit auto-discovery
Sergio LeónThe Consensus Analyzer page was not appearing in the sidebar because Streamlit looks for pages/ relative to the main script, not in src/dynafold_hub/ui/pages/. Fix: - Add pages/1_🔬_Consensus_Analyzer.py at root - Update Dockerfile to copy pages/ directory - Simplified streamlit_app.pyc8efad3 -
feat: initial DYNAFOLD Hub deployment
Sergio LeónStreamlit web app with Consensus Analyzer. Compare AI model predictions, find consensus, get experimental recommendations. Source: github.com/dynafold-ai/dynafold-hub59679e2 -
initial commit
Verified signaturebee2f82 -
Duplicate from streamlit/streamlit-template-space
Co-authored-by: Franck Abgrall <FranckAbgrall@users.noreply.huggingface.co>bc2b713