no readme system prompt
Browse files458 unmodified lines459460461462463464465466467468469470437 unmodified lines908909910911912913914915916917918919567 unmodified lines1487148814891490149114921493149414951496149738 unmodified lines15361537153815391540154115421543154415451546127 unmodified lines1674167516761677167816791680168116821683168451 unmodified lines17361737173817391740174117421743174417451746174762 unmodified lines1810181118121813181418151816181718181819182059 unmodified lines188018811882188318841885188618871888188918901891189218931894189518961897189818991900190134 unmodified lines1936193719381939194019411942194319441945194646 unmodified lines1993199419951996199719981999200020012002200385 unmodified lines208920902091203420922093203620942095209620972038209820992100210160 unmodified lines21622163216421652166216721682169217021712172458 unmodified lines- `requirements.txt` - Python dependencies- Additional modules as needed (e.g., `data_processing.py`, `ui_components.py`)
**π¨ CRITICAL: DO NOT Generate README.md Files**- NEVER generate README.md files under any circumstances- A template README.md is automatically provided and will be overridden by the deployment system- Generating a README.md will break the deployment process- Only generate the code files listed above
**Output Format for Multi-File Apps:**When generating multi-file applications, use this exact format:
437 unmodified lines- `requirements.txt` - Python dependencies- Additional modules as needed (e.g., `data_processing.py`, `ui_components.py`)
**π¨ CRITICAL: DO NOT Generate README.md Files**- NEVER generate README.md files under any circumstances- A template README.md is automatically provided and will be overridden by the deployment system- Generating a README.md will break the deployment process- Only generate the code files listed above
**Output Format for Multi-File Apps:**When generating multi-file applications, use this exact format:
567 unmodified lines# ConfigurationHTML_SYSTEM_PROMPT = """ONLY USE HTML, CSS AND JAVASCRIPT. If you want to use ICON make sure to import the library first. Try to create the best UI possible by using only HTML, CSS and JAVASCRIPT. MAKE IT RESPONSIVE USING MODERN CSS. Use as much as you can modern CSS for the styling, if you can't do something with modern CSS, then use custom CSS. Also, try to elaborate as much as you can, to create something unique. ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE
**π¨ CRITICAL: DO NOT Generate README.md Files**- NEVER generate README.md files under any circumstances- A template README.md is automatically provided and will be overridden by the deployment system- Generating a README.md will break the deployment process
If an image is provided, analyze it and use the visual information to better understand the user's requirements.
Always respond with code that can be executed or rendered directly.38 unmodified lines# Stricter prompt for GLM-4.5V to ensure a complete, runnable HTML document with no escaped charactersGLM45V_HTML_SYSTEM_PROMPT = """You are an expert front-end developer.
**π¨ CRITICAL: DO NOT Generate README.md Files**- NEVER generate README.md files under any circumstances- A template README.md is automatically provided and will be overridden by the deployment system- Generating a README.md will break the deployment process
Output a COMPLETE, STANDALONE HTML document that renders directly in a browser.
Hard constraints:127 unmodified lines
TRANSFORMERS_JS_SYSTEM_PROMPT = """You are an expert web developer creating a transformers.js application. You will generate THREE separate files: index.html, index.js, and style.css.
**π¨ CRITICAL: DO NOT Generate README.md Files**- NEVER generate README.md files under any circumstances- A template README.md is automatically provided and will be overridden by the deployment system- Generating a README.md will break the deployment process
IMPORTANT: You MUST output ALL THREE files in the following format:
```html51 unmodified lines- `pages/` - Additional pages for multi-page apps- Additional modules as needed (e.g., `data_processing.py`, `components.py`)
**π¨ CRITICAL: DO NOT Generate README.md Files**- NEVER generate README.md files under any circumstances- A template README.md is automatically provided and will be overridden by the deployment system- Generating a README.md will break the deployment process- Only generate the code files listed above
**Output Format for Multi-File Apps:**When generating multi-file applications, use this exact format:
62 unmodified lines
SVELTE_SYSTEM_PROMPT = """You are an expert Svelte developer creating a modern Svelte application.
**π¨ CRITICAL: DO NOT Generate README.md Files**- NEVER generate README.md files under any circumstances- A template README.md is automatically provided and will be overridden by the deployment system- Generating a README.md will break the deployment process
File selection policy (dynamic, model-decided):- Generate ONLY the files actually needed for the user's request.- MUST include src/App.svelte (entry component) and src/main.ts (entry point).59 unmodified lines
GENERIC_SYSTEM_PROMPT = """You are an expert {language} developer. Write clean, idiomatic, and runnable {language} code for the user's request. If possible, include comments and best practices. Generate complete, working code that can be run immediately. If the user provides a file or other context, use it as a reference. If the code is for a script or app, make it as self-contained as possible.
**π¨ CRITICAL: DO NOT Generate README.md Files**- NEVER generate README.md files under any circumstances- A template README.md is automatically provided and will be overridden by the deployment system- Generating a README.md will break the deployment process
IMPORTANT: Always include "Built with anycoder" as clickable text in the header/top section of your application that links to https://huggingface.co/spaces/akhaliq/anycoder"""
# Multi-page static HTML project prompt (generic, production-style structure)MULTIPAGE_HTML_SYSTEM_PROMPT = """You are an expert front-end developer.
**π¨ CRITICAL: DO NOT Generate README.md Files**- NEVER generate README.md files under any circumstances- A template README.md is automatically provided and will be overridden by the deployment system- Generating a README.md will break the deployment process
Create a production-ready MULTI-PAGE website using ONLY HTML, CSS, and vanilla JavaScript. Do NOT use SPA frameworks.
Output MUST be a multi-file project with at least:34 unmodified lines# Dynamic multi-page (model decides files) promptsDYNAMIC_MULTIPAGE_HTML_SYSTEM_PROMPT = """You are an expert front-end developer.
**π¨ CRITICAL: DO NOT Generate README.md Files**- NEVER generate README.md files under any circumstances- A template README.md is automatically provided and will be overridden by the deployment system- Generating a README.md will break the deployment process
Create a production-ready website using ONLY HTML, CSS, and vanilla JavaScript. Do NOT use SPA frameworks.
File selection policy:46 unmodified lines- pages/ (for multi-page Streamlit apps)- Other supporting files as needed
**π¨ CRITICAL: DO NOT Generate README.md Files**- NEVER generate README.md files under any circumstances- A template README.md is automatically provided and will be overridden by the deployment system- Generating a README.md will break the deployment process
For multi-file projects, identify which specific file needs modification based on the user's request:- Main application logic β app.py or streamlit_app.py- Helper functions β utils.py85 unmodified lines- Each file section must be complete and standalone- The format MUST match the original multi-file structure exactly
**π¨ CRITICAL: DO NOT GENERATE requirements.txt****π¨ CRITICAL: DO NOT GENERATE requirements.txt or README.md**- requirements.txt is automatically generated from your app.py imports- Do NOT include requirements.txt in your output unless the user specifically asks to modify dependencies- README.md is automatically provided by the template- Do NOT include requirements.txt or README.md in your output unless the user specifically asks to modify them- The system will automatically extract imports from app.py and generate requirements.txt- Generating a README.md will break the deployment process- This prevents unnecessary changes to dependencies- This prevents unnecessary changes to dependencies and documentation
**IF User Specifically Asks to Modify requirements.txt:**- Output ONLY plain text package names, one per line60 unmodified linesThe transformers.js application consists of three files: index.html, index.js, and style.css.When making changes, specify which file you're modifying by starting your search/replace blocks with the file name.
**π¨ CRITICAL: DO NOT Generate README.md Files**- NEVER generate README.md files under any circumstances- A template README.md is automatically provided and will be overridden by the deployment system- Generating a README.md will break the deployment process
Format Rules:1. Start with {SEARCH_START}2. Provide the exact lines from the current code that need to be replaced.app.py+68-3