Update constants.py
Browse files- constants.py +72 -0
constants.py
CHANGED
|
@@ -73,3 +73,75 @@ The index.html should contain the basic HTML structure and link to the CSS and J
|
|
| 73 |
The index.js should contain all the JavaScript logic including transformers.js integration.
|
| 74 |
The style.css should contain all the styling for the application.
|
| 75 |
Always output only the three code blocks as shown above, and do not include any explanations or extra text."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
The index.js should contain all the JavaScript logic including transformers.js integration.
|
| 74 |
The style.css should contain all the styling for the application.
|
| 75 |
Always output only the three code blocks as shown above, and do not include any explanations or extra text."""
|
| 76 |
+
|
| 77 |
+
# Available HF models for code generation
|
| 78 |
+
AVAILABLE_MODELS = [
|
| 79 |
+
{
|
| 80 |
+
"name": "Moonshot Kimi-K2",
|
| 81 |
+
"id": "moonshotai/Kimi-K2-Instruct",
|
| 82 |
+
"description": "Moonshot AI Kimi-K2-Instruct model for code generation and general tasks"
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"name": "DeepSeek V3",
|
| 86 |
+
"id": "deepseek-ai/DeepSeek-V3-0324",
|
| 87 |
+
"description": "DeepSeek V3 model for code generation"
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"name": "DeepSeek R1",
|
| 91 |
+
"id": "deepseek-ai/DeepSeek-R1-0528",
|
| 92 |
+
"description": "DeepSeek R1 model for code generation"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "ERNIE-4.5-VL",
|
| 96 |
+
"id": "baidu/ERNIE-4.5-VL-424B-A47B-Base-PT",
|
| 97 |
+
"description": "ERNIE-4.5-VL model for multimodal code generation with image support"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"name": "MiniMax M1",
|
| 101 |
+
"id": "MiniMaxAI/MiniMax-M1-80k",
|
| 102 |
+
"description": "MiniMax M1 model for code generation and general tasks"
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"name": "Qwen3-235B-A22B",
|
| 106 |
+
"id": "Qwen/Qwen3-235B-A22B",
|
| 107 |
+
"description": "Qwen3-235B-A22B model for code generation and general tasks"
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"name": "SmolLM3-3B",
|
| 111 |
+
"id": "HuggingFaceTB/SmolLM3-3B",
|
| 112 |
+
"description": "SmolLM3-3B model for code generation and general tasks"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"name": "GLM-4.1V-9B-Thinking",
|
| 116 |
+
"id": "THUDM/GLM-4.1V-9B-Thinking",
|
| 117 |
+
"description": "GLM-4.1V-9B-Thinking model for multimodal code generation with image support"
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"name": "Qwen3-235B-A22B-Instruct-2507",
|
| 121 |
+
"id": "Qwen/Qwen3-235B-A22B-Instruct-2507",
|
| 122 |
+
"description": "Qwen3-235B-A22B-Instruct-2507 model for code generation and general tasks"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "Qwen3-Coder-480B-A35B",
|
| 126 |
+
"id": "Qwen/Qwen3-Coder-480B-A35B-Instruct",
|
| 127 |
+
"description": "Qwen3-Coder-480B-A35B-Instruct model for advanced code generation and programming tasks"
|
| 128 |
+
}
|
| 129 |
+
]
|
| 130 |
+
|
| 131 |
+
# Quick‑start demo list for the sidebar
|
| 132 |
+
DEMO_LIST = [
|
| 133 |
+
{"title": "Todo App", "description": "Create a simple todo application with add, delete, and mark as complete functionality"},
|
| 134 |
+
{"title": "Calculator", "description": "Build a basic calculator with addition, subtraction, multiplication, and division"},
|
| 135 |
+
{"title": "Chat Interface", "description": "Build a chat interface with message history and user input"},
|
| 136 |
+
{"title": "E-commerce Product Card", "description": "Create a product card component for an e-commerce website"},
|
| 137 |
+
{"title": "Login Form", "description": "Build a responsive login form with validation"},
|
| 138 |
+
{"title": "Dashboard Layout", "description": "Create a dashboard layout with sidebar navigation and main content area"},
|
| 139 |
+
{"title": "Data Table", "description": "Build a data table with sorting and filtering capabilities"},
|
| 140 |
+
{"title": "Image Gallery", "description": "Create an image gallery with lightbox functionality and responsive grid layout"},
|
| 141 |
+
{"title": "UI from Image", "description": "Upload an image of a UI design and I'll generate the HTML/CSS code for it"},
|
| 142 |
+
{"title": "Extract Text from Image", "description": "Upload an image containing text and I'll extract and process the text content"},
|
| 143 |
+
{"title": "Website Redesign", "description": "Enter a website URL to extract its content and redesign it with a modern, responsive layout"},
|
| 144 |
+
{"title": "Modify HTML", "description": "After generating HTML, ask me to modify it with specific changes using search/replace format"},
|
| 145 |
+
{"title": "Search/Replace Example", "description": "Generate HTML first, then ask: 'Change the title to My New Title' or 'Add a blue background to the body'"},
|
| 146 |
+
{"title": "Transformers.js App", "description": "Create a transformers.js application with AI/ML functionality using the transformers.js library"}
|
| 147 |
+
]
|