Spaces:
Sleeping
Sleeping
Commit History
-
add minimax m2.1
04093c9
-
glm 4.6 default
4868ca9 -
show reasoning
2f53e3f -
update glm 4.7 to novita
afb81bf
-
update glm 4.7
fdd720a
-
remove non HF models
859897e -
update default model
978f99a -
add new gemini model
f1abbb2
-
switch to openrouter
304b69a -
add devstral and react updates
cd45927
-
update
2218d34 -
update
15e93d6 -
add image model support
db72a16
-
fix comfyui
35022df
-
update
51bcded -
update PR logic
e19eb49
-
fix
8f21cf3 -
update
2b0cf6a -
add redesign feature fix
0827363
-
add deepseek v3.2
bc202f9
-
auto deploy fix
5ac5919 -
autodeploy apps
cd2780c
-
add opus and remove some models and gradio 6 update
254f500
-
update
5db8e53
-
fix
9acce26 -
fix deploy
5a38e32
-
fix
deb8b94 -
fix
3aef00d -
fix
dba0810 -
fix
5c91796
-
update
ccf0e98 -
fix
e747dd7 -
fix
a35ce25
-
update models
905ef08 -
gradio 6 support
d1c02ef -
fix oauth issue
4d53e2b -
clean up code
63db11a
-
update default
4c3311e -
update
3c247ba -
optimizations
990c944 -
update to use grok 4.1 fast
0b126be
-
update
fe566fd -
update import project
53813c1 -
add import feature
3eb00a5 -
update gemini to poe
d4d57c4 -
update gemini
0498411 -
fix gemini 3
fab9ff4 -
Add follow-up deployment support: Update existing spaces instead of creating new ones
Implemented the same pattern as original deploy.py where follow-up prompts update the existing deployed space with new commits instead of creating new spaces. backend_deploy.py changes: - Added existing_repo_id parameter to deploy_to_huggingface_space() - Added commit_message parameter for custom commit messages - Added is_update logic to detect updates vs new deployments - Skip create_repo() when updating existing space - Use appropriate commit message: "Update from anycoder" vs "Deploy from anycoder" - Return different success message: "Updated" vs "Deployed" - Skip 2-second wait for README on updates (already exists) backend_api.py changes: - Updated DeploymentRequest model to include: * existing_repo_id (optional) - for explicitly updating a space * commit_message (optional) - custom commit message * space_name now optional (not needed for updates) - Added deployed_spaces tracking to user_sessions - Deploy endpoint now: * Checks session for previously deployed spaces * …fe27a3c -
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 -
Create standalone backend_prompts.py without Gradio dependencies
Issue: Backend depends on anycoder_app which has Gradio dependencies Solution: Extract all system prompts to standalone backend_prompts.py New file: backend_prompts.py - No dependencies on Gradio, config, or other heavy libraries - Pure Python with just string prompts - Includes all 7 language/framework prompts: * HTML_SYSTEM_PROMPT * TRANSFORMERS_JS_SYSTEM_PROMPT * STREAMLIT_SYSTEM_PROMPT * REACT_SYSTEM_PROMPT * GRADIO_SYSTEM_PROMPT (static version) * JSON_SYSTEM_PROMPT (static version) * GENERIC_SYSTEM_PROMPT Benefits: ✅ Backend starts faster (no Gradio imports) ✅ No dependency on anycoder_app directory ✅ Cleaner separation of concerns ✅ Same expert-level prompts for all languages ✅ Easier to maintain and update prompts ✅ No circular dependencies ✅ Works in Docker without full Gradio installation Updated backend_api.py: - Import from backend_prompts instead of anycoder_app.prompts - Simpler, cleaner import with single try/except - Fallback prompts if import fails - C…613b744