Spaces:
Running on CPU Upgrade

app.py CHANGED
@@ -10,6 +10,7 @@ from app_replicate import demo as demo_replicate
10
  from app_sambanova import demo as demo_sambanova
11
  from app_together import demo as demo_together
12
  from app_xai import demo as demo_grok
 
13
  from app_crew import demo as demo_crew
14
  from app_hyperbolic import demo as demo_hyperbolic
15
  from app_gemini_coder import demo as demo_gemini_coder
@@ -25,20 +26,12 @@ from app_minimax import demo as demo_minimax
25
  from app_minimax_coder import demo as demo_minimax_coder
26
  from app_nvidia import demo as demo_nvidia
27
  from app_deepseek import demo as demo_deepseek
28
- from app_qwen import demo as demo_qwen
29
- from app_qwen_coder import demo as demo_qwen_coder
30
- from app_nvidia_coder import demo as demo_nvidia_coder
31
  from utils import get_app
32
 
33
  # Create mapping of providers to their demos
34
  PROVIDERS = {
35
- "NVIDIA Coder": demo_nvidia_coder,
36
- "Hyperbolic Coder": demo_hyperbolic_coder,
37
- "Hyperbolic": demo_hyperbolic,
38
- "Groq Coder": demo_groq_coder,
39
- "Qwen Coder": demo_qwen_coder,
40
- "Qwen": demo_qwen,
41
  "Gemini Coder": demo_gemini_coder,
 
42
  "DeepSeek Coder": demo_deepseek,
43
  "Minimax Coder": demo_minimax_coder,
44
  "NVIDIA": demo_nvidia,
@@ -47,7 +40,10 @@ PROVIDERS = {
47
  "Langchain Agent": demo_langchain,
48
  "OpenAI Coder": demo_openai_coder,
49
  "Gemini": demo_gemini,
 
50
  "SmolAgents": demo_smolagents,
 
 
51
  "CrewAI": demo_crew,
52
  "LumaAI": demo_lumaai,
53
  "Grok": demo_grok,
@@ -66,7 +62,7 @@ PROVIDERS = {
66
 
67
  demo = get_app(
68
  models=list(PROVIDERS.keys()),
69
- default_model="NVIDIA Coder",
70
  src=PROVIDERS,
71
  dropdown_label="Select Provider",
72
  )
 
10
  from app_sambanova import demo as demo_sambanova
11
  from app_together import demo as demo_together
12
  from app_xai import demo as demo_grok
13
+ from app_qwen import demo as demo_qwen
14
  from app_crew import demo as demo_crew
15
  from app_hyperbolic import demo as demo_hyperbolic
16
  from app_gemini_coder import demo as demo_gemini_coder
 
26
  from app_minimax_coder import demo as demo_minimax_coder
27
  from app_nvidia import demo as demo_nvidia
28
  from app_deepseek import demo as demo_deepseek
 
 
 
29
  from utils import get_app
30
 
31
  # Create mapping of providers to their demos
32
  PROVIDERS = {
 
 
 
 
 
 
33
  "Gemini Coder": demo_gemini_coder,
34
+ "Groq Coder": demo_groq_coder,
35
  "DeepSeek Coder": demo_deepseek,
36
  "Minimax Coder": demo_minimax_coder,
37
  "NVIDIA": demo_nvidia,
 
40
  "Langchain Agent": demo_langchain,
41
  "OpenAI Coder": demo_openai_coder,
42
  "Gemini": demo_gemini,
43
+ "Hyperbolic Coder": demo_hyperbolic_coder,
44
  "SmolAgents": demo_smolagents,
45
+ "Qwen": demo_qwen,
46
+ "Hyperbolic": demo_hyperbolic,
47
  "CrewAI": demo_crew,
48
  "LumaAI": demo_lumaai,
49
  "Grok": demo_grok,
 
62
 
63
  demo = get_app(
64
  models=list(PROVIDERS.keys()),
65
+ default_model="Gemini Coder",
66
  src=PROVIDERS,
67
  dropdown_label="Select Provider",
68
  )
app_hyperbolic.py CHANGED
@@ -12,7 +12,7 @@ HYPERBOLIC_MODELS_DISPLAY = [k.replace("hyperbolic:", "") for k in HYPERBOLIC_MO
12
  # Create and launch the interface using get_app utility
13
  demo = get_app(
14
  models=HYPERBOLIC_MODELS_FULL, # Use the full names with prefix
15
- default_model=HYPERBOLIC_MODELS_FULL[-2],
16
  dropdown_label="Select Hyperbolic Model",
17
  choices=HYPERBOLIC_MODELS_DISPLAY, # Display names without prefix
18
  fill_height=True,
 
12
  # Create and launch the interface using get_app utility
13
  demo = get_app(
14
  models=HYPERBOLIC_MODELS_FULL, # Use the full names with prefix
15
+ default_model=HYPERBOLIC_MODELS_FULL[-1],
16
  dropdown_label="Select Hyperbolic Model",
17
  choices=HYPERBOLIC_MODELS_DISPLAY, # Display names without prefix
18
  fill_height=True,
app_hyperbolic_coder.py CHANGED
@@ -12,7 +12,7 @@ HYPERBOLIC_MODELS_DISPLAY = [k.replace("hyperbolic:", "") for k in HYPERBOLIC_MO
12
  # Create and launch the interface using get_app utility
13
  demo = get_app(
14
  models=HYPERBOLIC_MODELS_FULL, # Use the full names with prefix
15
- default_model=HYPERBOLIC_MODELS_FULL[-2],
16
  dropdown_label="Select Hyperbolic Model",
17
  choices=HYPERBOLIC_MODELS_DISPLAY, # Display names without prefix
18
  fill_height=True,
 
12
  # Create and launch the interface using get_app utility
13
  demo = get_app(
14
  models=HYPERBOLIC_MODELS_FULL, # Use the full names with prefix
15
+ default_model=HYPERBOLIC_MODELS_FULL[-1],
16
  dropdown_label="Select Hyperbolic Model",
17
  choices=HYPERBOLIC_MODELS_DISPLAY, # Display names without prefix
18
  fill_height=True,
app_nvidia_coder.py DELETED
@@ -1,23 +0,0 @@
1
- import ai_gradio
2
-
3
- from utils_ai_gradio import get_app
4
-
5
- # Get the nvidia models but keep their full names for loading
6
- NVIDIA_MODELS_FULL = [k for k in ai_gradio.registry.keys() if k.startswith("nvidia:")]
7
-
8
- # Create display names without the prefix
9
- NVIDIA_MODELS_DISPLAY = [k.replace("nvidia:", "") for k in NVIDIA_MODELS_FULL]
10
-
11
-
12
- # Create and launch the interface using get_app utility
13
- demo = get_app(
14
- models=NVIDIA_MODELS_FULL, # Use the full names with prefix
15
- default_model=NVIDIA_MODELS_FULL[-1],
16
- dropdown_label="Select Nvidia Model",
17
- choices=NVIDIA_MODELS_DISPLAY, # Display names without prefix
18
- fill_height=True,
19
- coder=True
20
- )
21
-
22
- if __name__ == "__main__":
23
- demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app_qwen.py CHANGED
@@ -1,19 +1,27 @@
1
- import ai_gradio
2
 
3
- from utils_ai_gradio import get_app
4
 
5
- # Get the qwen models but keep their full names for loading
6
- QWEN_MODELS_FULL = [k for k in ai_gradio.registry.keys() if k.startswith("qwen:")]
7
 
8
- # Create display names without the prefix
9
- QWEN_MODELS_DISPLAY = [k.replace("qwen:", "") for k in QWEN_MODELS_FULL]
10
-
11
-
12
- # Create and launch the interface using get_app utility
13
  demo = get_app(
14
- models=QWEN_MODELS_FULL, # Use the full names with prefix
15
- default_model=QWEN_MODELS_FULL[-1],
16
- dropdown_label="Select Qwen Model",
17
- choices=QWEN_MODELS_DISPLAY, # Display names without prefix
18
- fill_height=True,
 
 
 
 
 
 
 
 
 
 
 
19
  )
 
 
 
 
1
+ import os
2
 
3
+ import dashscope_gradio
4
 
5
+ from utils import get_app
 
6
 
 
 
 
 
 
7
  demo = get_app(
8
+ models=[
9
+ "qwen-turbo-latest",
10
+ "qwen-turbo",
11
+ "qwen-plus",
12
+ "qwen-max",
13
+ "qwen1.5-110b-chat",
14
+ "qwen1.5-72b-chat",
15
+ "qwen1.5-32b-chat",
16
+ "qwen1.5-14b-chat",
17
+ "qwen1.5-7b-chat",
18
+ "qwq-32b-preview",
19
+ "qvq-72b-preview",
20
+ ],
21
+ default_model="qvq-72b-preview",
22
+ src=dashscope_gradio.registry,
23
+ accept_token=not os.getenv("DASHSCOPE_API_KEY"),
24
  )
25
+
26
+ if __name__ == "__main__":
27
+ demo.launch()
app_qwen_coder.py DELETED
@@ -1,20 +0,0 @@
1
- import ai_gradio
2
-
3
- from utils_ai_gradio import get_app
4
-
5
- # Get the qwen models but keep their full names for loading
6
- QWEN_MODELS_FULL = [k for k in ai_gradio.registry.keys() if k.startswith("qwen:")]
7
-
8
- # Create display names without the prefix
9
- QWEN_MODELS_DISPLAY = [k.replace("qwen:", "") for k in QWEN_MODELS_FULL]
10
-
11
-
12
- # Create and launch the interface using get_app utility
13
- demo = get_app(
14
- models=QWEN_MODELS_FULL, # Use the full names with prefix
15
- default_model=QWEN_MODELS_FULL[-1],
16
- dropdown_label="Select Qwen Model",
17
- choices=QWEN_MODELS_DISPLAY, # Display names without prefix
18
- fill_height=True,
19
- coder=True,
20
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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, qwen]>=0.2.34",
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.28",
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.34
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.28
6
  # via anychat (pyproject.toml)
7
  aiofiles==23.2.1
8
  # via gradio