Commit History
-
fix transformers js issue
511c44b
-
update
25c838a -
update
d1efd8a -
Add standalone backend_deploy.py without Gradio dependencies
Created backend_deploy.py as a standalone deployment utility that can be used by the backend API without any Gradio dependencies. This module provides clean deployment functions for HuggingFace Spaces. Key features: - deploy_to_huggingface_space(): Main deployment function supporting all language types (HTML, Gradio, Streamlit, React, Transformers.js, ComfyUI) - Automatic SDK detection and appropriate file structure generation - Multi-file support (README, Dockerfile, requirements.txt, etc.) - update_space_file(): Update individual files in existing spaces - delete_space(): Delete spaces - list_user_spaces(): List all user spaces Code parsing utilities: - parse_html_code(): Extract HTML from various formats - parse_transformers_js_output(): Parse multi-file transformers.js output - parse_python_requirements(): Extract requirements.txt - parse_multi_file_python_output(): Parse Gradio/Streamlit multi-file apps - is_streamlit_code() / is_gradio_code(): Code type detection - detect_sdk…ba8977c -
Fix Docker build: Copy backend_prompts.py to container
Issue: ModuleNotFoundError: No module named 'backend_prompts' Root cause: backend_prompts.py was created but not copied to Docker container Fix: - Add COPY --chown=user:user backend_prompts.py . to Dockerfile - File is now copied alongside backend_api.py - Backend can now import prompts successfully Docker build steps now include: 1. Copy requirements.txt 2. Install Python dependencies 3. Copy anycoder_app/ directory 4. Copy backend_api.py 5. Copy backend_prompts.py ← NEW 6. Copy app.py 7. Copy frontend build This ensures backend_prompts.py is available when backend_api.py tries to import it at startup.b277d84 -
Fix API connectivity in Docker Space
Root cause: NEXT_PUBLIC_API_URL was defaulting to 'http://localhost:8000' which made the browser try to reach localhost instead of using Next.js proxy. Fixes: - Remove default value for NEXT_PUBLIC_API_URL in next.config.js - Only set NEXT_PUBLIC_API_URL if explicitly provided - In Docker Space, frontend uses relative URLs (empty string) - Next.js server proxies /api/* to localhost:8000 backend - Add console.log debugging to trace API URL resolution - Add comments explaining Docker Space proxy architecture This ensures: ✅ Production: Browser -> /api/models -> Next.js proxy -> localhost:8000/api/models ✅ Dev: Browser -> http://localhost:8000/api/models (direct)d84050d -
update
76d15d9 -
fix
a922ba4 -
update
0ce2018 -
new UI
b42dfef