Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
add deepseek
Browse files- app.py +3 -1
- app_deepseek.py +7 -0
- requirements.txt +1 -0
app.py
CHANGED
@@ -25,10 +25,12 @@ from app_together import demo as demo_together
|
|
25 |
from app_xai import demo as demo_grok
|
26 |
from app_openai_voice import demo as demo_openai_voice
|
27 |
from app_qwen import demo as demo_qwen
|
|
|
28 |
from utils import get_app
|
29 |
|
30 |
# Create mapping of providers to their demos
|
31 |
PROVIDERS = {
|
|
|
32 |
"Qwen" : demo_qwen,
|
33 |
"Gemini": demo_gemini,
|
34 |
"OpenAI Voice": demo_openai_voice,
|
@@ -58,7 +60,7 @@ PROVIDERS = {
|
|
58 |
"NVIDIA": demo_nvidia,
|
59 |
}
|
60 |
|
61 |
-
demo = get_app(models=list(PROVIDERS.keys()), default_model="
|
62 |
|
63 |
if __name__ == "__main__":
|
64 |
demo.queue(api_open=False).launch(show_api=False)
|
|
|
25 |
from app_xai import demo as demo_grok
|
26 |
from app_openai_voice import demo as demo_openai_voice
|
27 |
from app_qwen import demo as demo_qwen
|
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 |
+
"DeepSeek": demo_deepseek,
|
34 |
"Qwen" : demo_qwen,
|
35 |
"Gemini": demo_gemini,
|
36 |
"OpenAI Voice": demo_openai_voice,
|
|
|
60 |
"NVIDIA": demo_nvidia,
|
61 |
}
|
62 |
|
63 |
+
demo = get_app(models=list(PROVIDERS.keys()), default_model="DeepSeek", src=PROVIDERS, dropdown_label="Select Provider")
|
64 |
|
65 |
if __name__ == "__main__":
|
66 |
demo.queue(api_open=False).launch(show_api=False)
|
app_deepseek.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import ai_gradio
|
3 |
+
|
4 |
+
demo = gr.load(
|
5 |
+
name='deepseek:deepseek-chat',
|
6 |
+
src=ai_gradio.registry,
|
7 |
+
)
|
requirements.txt
CHANGED
@@ -513,3 +513,4 @@ xai-gradio==0.0.2
|
|
513 |
# via anychat (pyproject.toml)
|
514 |
yarl==1.18.3
|
515 |
# via aiohttp
|
|
|
|
513 |
# via anychat (pyproject.toml)
|
514 |
yarl==1.18.3
|
515 |
# via aiohttp
|
516 |
+
ai-gradio[deepseek]==0.1.6
|