Spaces:
Sleeping
Sleeping
update react app code
Browse filesFiles changed (2)
278 unmodified lines27928028128228328427 unmodified lines31231331431531631731820 unmodified lines339340341342343344278 unmodified lines12. Follow accessibility best practices13. Configure next.config.js properly for HuggingFace Spaces deploymentnext.config.js Requirements:- Must be configured to work on any host (0.0.0.0)- Should not have hardcoded localhost references27 unmodified linesWORKDIR /appRUN apt-get update && apt-get install -y \curl \&& rm -rf /var/lib/apt/lists/*20 unmodified linesYou MUST output ONLY the changes required using the following SEARCH/REPLACE block format. Do NOT output the entire file.Explain the changes briefly *before* the blocks if necessary, but the code changes THEMSELVES MUST be within the blocks.Format Rules:1. Start with <<<<<<< SEARCH2. Include the exact lines that need to be changed (with full context, at least 3 lines before and after)278 unmodified lines27928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431527 unmodified lines34334434534634734834935020 unmodified lines371372373374375376377378379380381382383278 unmodified lines12. Follow accessibility best practices13. Configure next.config.js properly for HuggingFace Spaces deployment🚨 CRITICAL JSX SYNTAX RULES:- Style objects and JSX props are SEPARATE - never mix them- Style objects use camelCase property names and end with a closing brace- Event handlers (onClick, onInput, onChange, etc.) are JSX props, NOT style properties- Correct syntax:```jsx<textareastyle={{width: '100%',padding: '12px',height: '48px'}}onInput={(e) => {// handler code}}placeholder="Type here"/>```- WRONG syntax (DO NOT DO THIS):```jsx<textareastyle={{width: '100%',height: '48px'onInput={(e) => { // ❌ WRONG - onInput inside style object```- Always ensure proper closing braces for style objects BEFORE adding event handlers- Use proper indentation to keep JSX props at the same level- PREFER Tailwind CSS classes over inline styles to avoid syntax errors- If using inline styles, double-check closing braces before adding any event handlersnext.config.js Requirements:- Must be configured to work on any host (0.0.0.0)- Should not have hardcoded localhost references27 unmodified linesWORKDIR /app# Install system dependenciesRUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \curl \&& rm -rf /var/lib/apt/lists/*20 unmodified linesYou MUST output ONLY the changes required using the following SEARCH/REPLACE block format. Do NOT output the entire file.Explain the changes briefly *before* the blocks if necessary, but the code changes THEMSELVES MUST be within the blocks.🚨 CRITICAL JSX SYNTAX RULES:- Style objects and JSX props must be SEPARATE - never mix them- Event handlers (onClick, onInput, onChange) are JSX props, NOT style properties- Always close style objects with }} BEFORE adding event handlers- PREFER Tailwind CSS classes over inline styles- Ensure all JSX is syntactically valid before outputtingFormat Rules:1. Start with <<<<<<< SEARCH2. Include the exact lines that need to be changed (with full context, at least 3 lines before and after)
1116 unmodified lines11171118111911201121112211231116 unmodified linesWORKDIR /appRUN apt-get update && apt-get install -y \\curl \\&& rm -rf /var/lib/apt/lists/*1116 unmodified lines111711181119112011211122112311241116 unmodified linesWORKDIR /app# Install system dependenciesRUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \\curl \\&& rm -rf /var/lib/apt/lists/*
anycoder_app/prompts.py+40-1
anycoder_app/ui.py+2-1