Spaces:
Running
Running
remove sonoma and quick start
Browse files
app.py
CHANGED
|
@@ -2107,16 +2107,6 @@ AVAILABLE_MODELS = [
|
|
| 2107 |
"name": "Qwen3-Max-2025-09-23",
|
| 2108 |
"id": "qwen3-max-2025-09-23",
|
| 2109 |
"description": "Qwen3-Max-2025-09-23 model - latest flagship model via Alibaba Cloud DashScope API"
|
| 2110 |
-
},
|
| 2111 |
-
{
|
| 2112 |
-
"name": "Sonoma Dusk Alpha",
|
| 2113 |
-
"id": "openrouter/sonoma-dusk-alpha",
|
| 2114 |
-
"description": "OpenRouter Sonoma Dusk Alpha model with vision capabilities"
|
| 2115 |
-
},
|
| 2116 |
-
{
|
| 2117 |
-
"name": "Sonoma Sky Alpha",
|
| 2118 |
-
"id": "openrouter/sonoma-sky-alpha",
|
| 2119 |
-
"description": "OpenRouter Sonoma Sky Alpha model with vision capabilities"
|
| 2120 |
}
|
| 2121 |
]
|
| 2122 |
|
|
@@ -2129,64 +2119,7 @@ for _m in AVAILABLE_MODELS:
|
|
| 2129 |
break
|
| 2130 |
if DEFAULT_MODEL is None and AVAILABLE_MODELS:
|
| 2131 |
DEFAULT_MODEL = AVAILABLE_MODELS[0]
|
| 2132 |
-
DEMO_LIST = [
|
| 2133 |
-
{
|
| 2134 |
-
"title": "Todo App",
|
| 2135 |
-
"description": "Create a simple todo application with add, delete, and mark as complete functionality"
|
| 2136 |
-
},
|
| 2137 |
-
{
|
| 2138 |
-
"title": "Calculator",
|
| 2139 |
-
"description": "Build a basic calculator with addition, subtraction, multiplication, and division"
|
| 2140 |
-
},
|
| 2141 |
-
{
|
| 2142 |
-
"title": "Chat Interface",
|
| 2143 |
-
"description": "Build a chat interface with message history and user input"
|
| 2144 |
-
},
|
| 2145 |
-
{
|
| 2146 |
-
"title": "E-commerce Product Card",
|
| 2147 |
-
"description": "Create a product card component for an e-commerce website"
|
| 2148 |
-
},
|
| 2149 |
-
{
|
| 2150 |
-
"title": "Login Form",
|
| 2151 |
-
"description": "Build a responsive login form with validation"
|
| 2152 |
-
},
|
| 2153 |
-
{
|
| 2154 |
-
"title": "Dashboard Layout",
|
| 2155 |
-
"description": "Create a dashboard layout with sidebar navigation and main content area"
|
| 2156 |
-
},
|
| 2157 |
-
{
|
| 2158 |
-
"title": "Data Table",
|
| 2159 |
-
"description": "Build a data table with sorting and filtering capabilities"
|
| 2160 |
-
},
|
| 2161 |
-
{
|
| 2162 |
-
"title": "Image Gallery",
|
| 2163 |
-
"description": "Create an image gallery with lightbox functionality and responsive grid layout"
|
| 2164 |
-
},
|
| 2165 |
-
{
|
| 2166 |
-
"title": "UI from Image",
|
| 2167 |
-
"description": "Upload an image of a UI design and I'll generate the HTML/CSS code for it"
|
| 2168 |
-
},
|
| 2169 |
-
{
|
| 2170 |
-
"title": "Extract Text from Image",
|
| 2171 |
-
"description": "Upload an image containing text and I'll extract and process the text content"
|
| 2172 |
-
},
|
| 2173 |
-
{
|
| 2174 |
-
"title": "Modify HTML",
|
| 2175 |
-
"description": "After generating HTML, ask me to modify it with specific changes using search/replace format"
|
| 2176 |
-
},
|
| 2177 |
-
{
|
| 2178 |
-
"title": "Search/Replace Example",
|
| 2179 |
-
"description": "Generate HTML first, then ask: 'Change the title to My New Title' or 'Add a blue background to the body'"
|
| 2180 |
-
},
|
| 2181 |
-
{
|
| 2182 |
-
"title": "Transformers.js App",
|
| 2183 |
-
"description": "Create a transformers.js application with AI/ML functionality using the transformers.js library"
|
| 2184 |
-
},
|
| 2185 |
-
{
|
| 2186 |
-
"title": "Svelte App",
|
| 2187 |
-
"description": "Create a modern Svelte application with TypeScript, Vite, and responsive design"
|
| 2188 |
-
}
|
| 2189 |
-
]
|
| 2190 |
|
| 2191 |
# HF Inference Client
|
| 2192 |
HF_TOKEN = os.getenv('HF_TOKEN')
|
|
|
|
| 2107 |
"name": "Qwen3-Max-2025-09-23",
|
| 2108 |
"id": "qwen3-max-2025-09-23",
|
| 2109 |
"description": "Qwen3-Max-2025-09-23 model - latest flagship model via Alibaba Cloud DashScope API"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2110 |
}
|
| 2111 |
]
|
| 2112 |
|
|
|
|
| 2119 |
break
|
| 2120 |
if DEFAULT_MODEL is None and AVAILABLE_MODELS:
|
| 2121 |
DEFAULT_MODEL = AVAILABLE_MODELS[0]
|
| 2122 |
+
DEMO_LIST = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2123 |
|
| 2124 |
# HF Inference Client
|
| 2125 |
HF_TOKEN = os.getenv('HF_TOKEN')
|