add minimax coder
Browse files- app.py +3 -1
- app_minimax_coder.py +23 -0
- pyproject.toml +1 -1
- requirements.txt +1 -1
app.py
CHANGED
@@ -35,10 +35,12 @@ from app_openai_coder import demo as demo_openai_coder
|
|
35 |
from app_langchain import demo as demo_langchain
|
36 |
from app_mistral import demo as demo_mistral
|
37 |
from app_minimax import demo as demo_minimax
|
|
|
38 |
from utils import get_app
|
39 |
|
40 |
# Create mapping of providers to their demos
|
41 |
PROVIDERS = {
|
|
|
42 |
"Minimax": demo_minimax,
|
43 |
"Gemini Camera": demo_gemini_camera,
|
44 |
"Mistral": demo_mistral,
|
@@ -80,7 +82,7 @@ PROVIDERS = {
|
|
80 |
|
81 |
demo = get_app(
|
82 |
models=list(PROVIDERS.keys()),
|
83 |
-
default_model="Minimax",
|
84 |
src=PROVIDERS,
|
85 |
dropdown_label="Select Provider",
|
86 |
)
|
|
|
35 |
from app_langchain import demo as demo_langchain
|
36 |
from app_mistral import demo as demo_mistral
|
37 |
from app_minimax import demo as demo_minimax
|
38 |
+
from app_minimax_coder import demo as demo_minimax_coder
|
39 |
from utils import get_app
|
40 |
|
41 |
# Create mapping of providers to their demos
|
42 |
PROVIDERS = {
|
43 |
+
"Minimax Coder": demo_minimax_coder,
|
44 |
"Minimax": demo_minimax,
|
45 |
"Gemini Camera": demo_gemini_camera,
|
46 |
"Mistral": demo_mistral,
|
|
|
82 |
|
83 |
demo = get_app(
|
84 |
models=list(PROVIDERS.keys()),
|
85 |
+
default_model="Minimax Coder",
|
86 |
src=PROVIDERS,
|
87 |
dropdown_label="Select Provider",
|
88 |
)
|
app_minimax_coder.py
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import ai_gradio
|
2 |
+
|
3 |
+
from utils_ai_gradio import get_app
|
4 |
+
|
5 |
+
# Get the hyperbolic models but keep their full names for loading
|
6 |
+
MINIMAX_MODELS_FULL = [k for k in ai_gradio.registry.keys() if k.startswith("minimax:")]
|
7 |
+
|
8 |
+
# Create display names without the prefix
|
9 |
+
MINIMAX_MODELS_DISPLAY = [k.replace("minimax:", "") for k in MINIMAX_MODELS_FULL]
|
10 |
+
|
11 |
+
|
12 |
+
# Create and launch the interface using get_app utility
|
13 |
+
demo = get_app(
|
14 |
+
models=MINIMAX_MODELS_FULL, # Use the full names with prefix
|
15 |
+
default_model=MINIMAX_MODELS_FULL[0],
|
16 |
+
dropdown_label="Select Minimax Model",
|
17 |
+
choices=MINIMAX_MODELS_DISPLAY, # Display names without prefix
|
18 |
+
fill_height=True,
|
19 |
+
coder=True
|
20 |
+
)
|
21 |
+
|
22 |
+
if __name__ == "__main__":
|
23 |
+
demo.launch()
|
pyproject.toml
CHANGED
@@ -38,7 +38,7 @@ dependencies = [
|
|
38 |
"langchain>=0.3.14",
|
39 |
"chromadb>=0.5.23",
|
40 |
"openai>=1.55.0",
|
41 |
-
"ai-gradio[crewai,deepseek,gemini,groq,hyperbolic,openai,smolagents,transformers, langchain, mistral,minimax]>=0.2.
|
42 |
]
|
43 |
|
44 |
[tool.uv.sources]
|
|
|
38 |
"langchain>=0.3.14",
|
39 |
"chromadb>=0.5.23",
|
40 |
"openai>=1.55.0",
|
41 |
+
"ai-gradio[crewai,deepseek,gemini,groq,hyperbolic,openai,smolagents,transformers, langchain, mistral,minimax]>=0.2.18",
|
42 |
]
|
43 |
|
44 |
[tool.uv.sources]
|
requirements.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# uv pip compile pyproject.toml -o requirements.txt
|
3 |
accelerate==1.2.1
|
4 |
# via ai-gradio
|
5 |
-
ai-gradio==0.2.
|
6 |
# via anychat (pyproject.toml)
|
7 |
aiofiles==23.2.1
|
8 |
# via gradio
|
|
|
2 |
# uv pip compile pyproject.toml -o requirements.txt
|
3 |
accelerate==1.2.1
|
4 |
# via ai-gradio
|
5 |
+
ai-gradio==0.2.18
|
6 |
# via anychat (pyproject.toml)
|
7 |
aiofiles==23.2.1
|
8 |
# via gradio
|