add nvidia coder
Browse filesFiles changed (4)
- app.py+3-1
- app_nvidia_coder.pyAdded+23
- pyproject.toml+1-1
- requirements.txt+1-1
26 unmodified lines2728293031323334353627 unmodified lines6465666768697026 unmodified linesfrom app_deepseek import demo as demo_deepseekfrom app_qwen import demo as demo_qwenfrom app_qwen_coder import demo as demo_qwen_coderfrom utils import get_app# Create mapping of providers to their demosPROVIDERS = {"Hyperbolic Coder": demo_hyperbolic_coder,"Hyperbolic": demo_hyperbolic,"Groq Coder": demo_groq_coder,27 unmodified linesdemo = get_app(models=list(PROVIDERS.keys()),default_model="Hyperbolic Coder",src=PROVIDERS,dropdown_label="Select Provider",)26 unmodified lines27282930313233343536373827 unmodified lines6667686970717226 unmodified linesfrom app_deepseek import demo as demo_deepseekfrom app_qwen import demo as demo_qwenfrom app_qwen_coder import demo as demo_qwen_coderfrom app_nvidia_coder import demo as demo_nvidia_coderfrom utils import get_app# Create mapping of providers to their demosPROVIDERS = {"NVIDIA Coder": demo_nvidia_coder,"Hyperbolic Coder": demo_hyperbolic_coder,"Hyperbolic": demo_hyperbolic,"Groq Coder": demo_groq_coder,27 unmodified linesdemo = get_app(models=list(PROVIDERS.keys()),default_model="NVIDIA Coder",src=PROVIDERS,dropdown_label="Select Provider",)
1234567891011121314151617181920212223import ai_gradio
from utils_ai_gradio import get_app
# Get the nvidia models but keep their full names for loadingNVIDIA_MODELS_FULL = [k for k in ai_gradio.registry.keys() if k.startswith("nvidia:")]
# Create display names without the prefixNVIDIA_MODELS_DISPLAY = [k.replace("nvidia:", "") for k in NVIDIA_MODELS_FULL]
# Create and launch the interface using get_app utilitydemo = get_app( models=NVIDIA_MODELS_FULL, # Use the full names with prefix default_model=NVIDIA_MODELS_FULL[-1], dropdown_label="Select Nvidia Model", choices=NVIDIA_MODELS_DISPLAY, # Display names without prefix fill_height=True, coder=True)
if __name__ == "__main__": demo.launch()37 unmodified lines3839404142434437 unmodified lines"langchain>=0.3.14","chromadb>=0.5.23","openai>=1.55.0","ai-gradio[crewai,deepseek,gemini,groq,hyperbolic,openai,smolagents,transformers, langchain, mistral,minimax,nvidia, qwen]>=0.2.33",][tool.uv.sources]37 unmodified lines3839404142434437 unmodified lines"langchain>=0.3.14","chromadb>=0.5.23","openai>=1.55.0","ai-gradio[crewai,deepseek,gemini,groq,hyperbolic,openai,smolagents,transformers, langchain, mistral,minimax,nvidia, qwen]>=0.2.34",][tool.uv.sources]
1 unmodified line23456781 unmodified line# uv pip compile pyproject.toml -o requirements.txtaccelerate==1.2.1# via ai-gradioai-gradio==0.2.33# via anychat (pyproject.toml)aiofiles==23.2.1# via gradio1 unmodified line23456781 unmodified line# uv pip compile pyproject.toml -o requirements.txtaccelerate==1.2.1# via ai-gradioai-gradio==0.2.34# via anychat (pyproject.toml)aiofiles==23.2.1# via gradio
app.py+3-1
app_nvidia_coder.pyAdded+23
pyproject.toml+1-1
requirements.txt+1-1