Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
add deepseek coder
Browse files- app.py +3 -3
- app_deepseek.py +20 -4
- pyproject.toml +1 -1
- requirements.txt +1 -1
app.py
CHANGED
@@ -17,7 +17,6 @@ from app_showui import demo as demo_showui
|
|
17 |
from app_together import demo as demo_together
|
18 |
from app_xai import demo as demo_grok
|
19 |
from app_qwen import demo as demo_qwen
|
20 |
-
from app_deepseek import demo as demo_deepseek
|
21 |
from app_crew import demo as demo_crew
|
22 |
from app_compare import demo as demo_compare
|
23 |
from app_hyperbolic import demo as demo_hyperbolic
|
@@ -36,10 +35,12 @@ from app_mistral import demo as demo_mistral
|
|
36 |
from app_minimax import demo as demo_minimax
|
37 |
from app_minimax_coder import demo as demo_minimax_coder
|
38 |
from app_nvidia import demo as demo_nvidia
|
|
|
39 |
from utils import get_app
|
40 |
|
41 |
# Create mapping of providers to their demos
|
42 |
PROVIDERS = {
|
|
|
43 |
"Minimax Coder": demo_minimax_coder,
|
44 |
"NVIDIA": demo_nvidia,
|
45 |
"Minimax": demo_minimax,
|
@@ -54,7 +55,6 @@ PROVIDERS = {
|
|
54 |
"Groq Coder": demo_groq_coder,
|
55 |
"Hyperbolic Coder": demo_hyperbolic_coder,
|
56 |
"SmolAgents": demo_smolagents,
|
57 |
-
"DeepSeek": demo_deepseek,
|
58 |
"Compare": demo_compare,
|
59 |
"Qwen": demo_qwen,
|
60 |
"Hyperbolic": demo_hyperbolic,
|
@@ -82,7 +82,7 @@ PROVIDERS = {
|
|
82 |
|
83 |
demo = get_app(
|
84 |
models=list(PROVIDERS.keys()),
|
85 |
-
default_model="
|
86 |
src=PROVIDERS,
|
87 |
dropdown_label="Select Provider",
|
88 |
)
|
|
|
17 |
from app_together import demo as demo_together
|
18 |
from app_xai import demo as demo_grok
|
19 |
from app_qwen import demo as demo_qwen
|
|
|
20 |
from app_crew import demo as demo_crew
|
21 |
from app_compare import demo as demo_compare
|
22 |
from app_hyperbolic import demo as demo_hyperbolic
|
|
|
35 |
from app_minimax import demo as demo_minimax
|
36 |
from app_minimax_coder import demo as demo_minimax_coder
|
37 |
from app_nvidia import demo as demo_nvidia
|
38 |
+
from app_deepseek import demo as demo_deepseek
|
39 |
from utils import get_app
|
40 |
|
41 |
# Create mapping of providers to their demos
|
42 |
PROVIDERS = {
|
43 |
+
"DeepSeek Coder": demo_deepseek,
|
44 |
"Minimax Coder": demo_minimax_coder,
|
45 |
"NVIDIA": demo_nvidia,
|
46 |
"Minimax": demo_minimax,
|
|
|
55 |
"Groq Coder": demo_groq_coder,
|
56 |
"Hyperbolic Coder": demo_hyperbolic_coder,
|
57 |
"SmolAgents": demo_smolagents,
|
|
|
58 |
"Compare": demo_compare,
|
59 |
"Qwen": demo_qwen,
|
60 |
"Hyperbolic": demo_hyperbolic,
|
|
|
82 |
|
83 |
demo = get_app(
|
84 |
models=list(PROVIDERS.keys()),
|
85 |
+
default_model="DeepSeek Coder",
|
86 |
src=PROVIDERS,
|
87 |
dropdown_label="Select Provider",
|
88 |
)
|
app_deepseek.py
CHANGED
@@ -1,7 +1,23 @@
|
|
1 |
import ai_gradio
|
2 |
-
import gradio as gr
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
)
|
|
|
|
|
|
|
|
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 |
+
DEEPSEEK_MODELS_FULL = [k for k in ai_gradio.registry.keys() if k.startswith("deepseek:")]
|
7 |
+
|
8 |
+
# Create display names without the prefix
|
9 |
+
DEEPSEEK_MODELS_DISPLAY = [k.replace("deepseek:", "") for k in DEEPSEEK_MODELS_FULL]
|
10 |
+
|
11 |
+
|
12 |
+
# Create and launch the interface using get_app utility
|
13 |
+
demo = get_app(
|
14 |
+
models=DEEPSEEK_MODELS_FULL, # Use the full names with prefix
|
15 |
+
default_model=DEEPSEEK_MODELS_FULL[-1],
|
16 |
+
dropdown_label="Select DeepSeek Model",
|
17 |
+
choices=DEEPSEEK_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,nvidia]>=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,nvidia]>=0.2.22",
|
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.22
|
6 |
# via anychat (pyproject.toml)
|
7 |
aiofiles==23.2.1
|
8 |
# via gradio
|