Spaces:
Running
Running
update models
Browse files
app.py
CHANGED
|
@@ -42,6 +42,11 @@ AVAILABLE_MODELS = [
|
|
| 42 |
"name": "ERNIE-4.5-VL",
|
| 43 |
"id": "baidu/ERNIE-4.5-VL-424B-A47B-Base-PT",
|
| 44 |
"description": "ERNIE-4.5-VL model for multimodal code generation with image support"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
}
|
| 46 |
]
|
| 47 |
|
|
@@ -268,7 +273,7 @@ with gr.Blocks(css_paths="app.css") as demo:
|
|
| 268 |
setting = gr.State({
|
| 269 |
"system": SystemPrompt,
|
| 270 |
})
|
| 271 |
-
current_model = gr.State(AVAILABLE_MODELS[
|
| 272 |
|
| 273 |
with ms.Application() as app:
|
| 274 |
with antd.ConfigProvider():
|
|
@@ -281,7 +286,7 @@ with gr.Blocks(css_paths="app.css") as demo:
|
|
| 281 |
<h1>AnyCoder</h1>
|
| 282 |
</div>
|
| 283 |
""")
|
| 284 |
-
current_model_display = gr.Markdown("**Current Model:** DeepSeek
|
| 285 |
input = antd.InputTextarea(
|
| 286 |
size="large", allow_clear=True, placeholder="Please enter what kind of application you want")
|
| 287 |
image_input = gr.Image(label="Upload an image (only for ERNIE-4.5-VL model)", visible=False)
|
|
|
|
| 42 |
"name": "ERNIE-4.5-VL",
|
| 43 |
"id": "baidu/ERNIE-4.5-VL-424B-A47B-Base-PT",
|
| 44 |
"description": "ERNIE-4.5-VL model for multimodal code generation with image support"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"name": "MiniMax M1",
|
| 48 |
+
"id": "MiniMaxAI/MiniMax-M1-80k",
|
| 49 |
+
"description": "MiniMax M1 model for code generation and general tasks"
|
| 50 |
}
|
| 51 |
]
|
| 52 |
|
|
|
|
| 273 |
setting = gr.State({
|
| 274 |
"system": SystemPrompt,
|
| 275 |
})
|
| 276 |
+
current_model = gr.State(AVAILABLE_MODELS[1]) # Default to DeepSeek R1 (second model)
|
| 277 |
|
| 278 |
with ms.Application() as app:
|
| 279 |
with antd.ConfigProvider():
|
|
|
|
| 286 |
<h1>AnyCoder</h1>
|
| 287 |
</div>
|
| 288 |
""")
|
| 289 |
+
current_model_display = gr.Markdown("**Current Model:** DeepSeek R1")
|
| 290 |
input = antd.InputTextarea(
|
| 291 |
size="large", allow_clear=True, placeholder="Please enter what kind of application you want")
|
| 292 |
image_input = gr.Image(label="Upload an image (only for ERNIE-4.5-VL model)", visible=False)
|