Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
add hyperbolic coder
Browse files- app.py +2 -0
- app_gemini.py +0 -2
- app_gemini_coder.py +0 -2
- app_gemini_voice.py +0 -2
- app_hyperbolic_coder.py +26 -0
- requirements.txt +1 -1
app.py
CHANGED
@@ -28,11 +28,13 @@ from app_openai import demo as demo_openai
|
|
28 |
from app_gemini_coder import demo as demo_gemini_coder
|
29 |
from app_gemini import demo as demo_gemini
|
30 |
from app_gemini_voice import demo as demo_gemini_voice
|
|
|
31 |
from utils import get_app
|
32 |
|
33 |
# Create mapping of providers to their demos
|
34 |
PROVIDERS = {
|
35 |
"Gemini Coder": demo_gemini_coder,
|
|
|
36 |
"DeepSeek": demo_deepseek,
|
37 |
"OpenAI": demo_openai,
|
38 |
"Compare": demo_compare,
|
|
|
28 |
from app_gemini_coder import demo as demo_gemini_coder
|
29 |
from app_gemini import demo as demo_gemini
|
30 |
from app_gemini_voice import demo as demo_gemini_voice
|
31 |
+
from app_hyperbolic_coder import demo as demo_hyperbolic_coder
|
32 |
from utils import get_app
|
33 |
|
34 |
# Create mapping of providers to their demos
|
35 |
PROVIDERS = {
|
36 |
"Gemini Coder": demo_gemini_coder,
|
37 |
+
"Hyperbolic Coder": demo_hyperbolic_coder,
|
38 |
"DeepSeek": demo_deepseek,
|
39 |
"OpenAI": demo_openai,
|
40 |
"Compare": demo_compare,
|
app_gemini.py
CHANGED
@@ -23,5 +23,3 @@ demo = get_app(
|
|
23 |
fill_height=True,
|
24 |
)
|
25 |
|
26 |
-
if __name__ == "__main__":
|
27 |
-
demo.launch()
|
|
|
23 |
fill_height=True,
|
24 |
)
|
25 |
|
|
|
|
app_gemini_coder.py
CHANGED
@@ -24,5 +24,3 @@ demo = get_app(
|
|
24 |
coder=True,
|
25 |
)
|
26 |
|
27 |
-
if __name__ == "__main__":
|
28 |
-
demo.launch()
|
|
|
24 |
coder=True,
|
25 |
)
|
26 |
|
|
|
|
app_gemini_voice.py
CHANGED
@@ -24,5 +24,3 @@ demo = get_app(
|
|
24 |
fill_height=True,
|
25 |
)
|
26 |
|
27 |
-
if __name__ == "__main__":
|
28 |
-
demo.launch()
|
|
|
24 |
fill_height=True,
|
25 |
)
|
26 |
|
|
|
|
app_hyperbolic_coder.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import ai_gradio
|
2 |
+
from utils_ai_gradio import get_app
|
3 |
+
|
4 |
+
# Get the hyperbolic models but keep their full names for loading
|
5 |
+
HYPERBOLIC_MODELS_FULL = [
|
6 |
+
k for k in ai_gradio.registry.keys()
|
7 |
+
if k.startswith('hyperbolic:')
|
8 |
+
]
|
9 |
+
|
10 |
+
# Create display names without the prefix
|
11 |
+
HYPERBOLIC_MODELS_DISPLAY = [
|
12 |
+
k.replace('hyperbolic:', '')
|
13 |
+
for k in HYPERBOLIC_MODELS_FULL
|
14 |
+
]
|
15 |
+
|
16 |
+
|
17 |
+
# Create and launch the interface using get_app utility
|
18 |
+
demo = get_app(
|
19 |
+
models=HYPERBOLIC_MODELS_FULL, # Use the full names with prefix
|
20 |
+
default_model=HYPERBOLIC_MODELS_FULL[-1],
|
21 |
+
dropdown_label="Select Hyperbolic Model",
|
22 |
+
choices=HYPERBOLIC_MODELS_DISPLAY, # Display names without prefix
|
23 |
+
fill_height=True,
|
24 |
+
coder=True
|
25 |
+
)
|
26 |
+
|
requirements.txt
CHANGED
@@ -513,7 +513,7 @@ xai-gradio==0.0.2
|
|
513 |
# via anychat (pyproject.toml)
|
514 |
yarl==1.18.3
|
515 |
# via aiohttp
|
516 |
-
ai-gradio[deepseek,crewai,hyperbolic,openai,gemini]==0.
|
517 |
crewai==0.86.0
|
518 |
instructor==1.3.3
|
519 |
crewai-tools>=0.17.0
|
|
|
513 |
# via anychat (pyproject.toml)
|
514 |
yarl==1.18.3
|
515 |
# via aiohttp
|
516 |
+
ai-gradio[deepseek,crewai,hyperbolic,openai,gemini]==0.2.0
|
517 |
crewai==0.86.0
|
518 |
instructor==1.3.3
|
519 |
crewai-tools>=0.17.0
|