Spaces:
Carter-123
/
Sleeping

akhaliq HF Staff commited on
Commit
e13574c
·
1 Parent(s): 9de4a40

Use full system prompts with Gradio dependencies

Browse files

Now that Gradio dependencies are installed in requirements.txt,
we can directly import and use the full expert-level prompts from
anycoder_app without fallbacks.

Changes:
- Remove all try/except fallback logic
- Directly import prompts from anycoder_app.prompts
- Initialize Gradio and ComfyUI prompts with update_gradio_system_prompts()
- Load full API documentation into prompts at startup
- Clean, simple imports with detailed startup logging

The backend now uses the complete, expert-level system prompts:
✅ HTML_SYSTEM_PROMPT - Full HTML/CSS/JS guidelines
✅ GRADIO_SYSTEM_PROMPT - Complete Gradio API docs from gradio.app/llms.txt
✅ STREAMLIT_SYSTEM_PROMPT - Streamlit with Docker requirements
✅ REACT_SYSTEM_PROMPT - Next.js with Tailwind guidelines
✅ TRANSFORMERS_JS_SYSTEM_PROMPT - Transformers.js patterns
✅ JSON_SYSTEM_PROMPT - ComfyUI API docs from docs.comfy.org/llms.txt
✅ All prompts include 'Built with anycoder' attribution rules

1 file changed +19 -41
backend_api.py+19-41