add mistral codestral
Browse filesFiles changed (5)
- app.py+5-3
- app_mistral.py+14-19
- app_mistral_coder.pyAdded+23
- pyproject.toml+1-1
- requirements.txt+4-2
6 unmodified lines7891011121320 unmodified lines343536373839404142431 unmodified line45464748495021 unmodified lines727374757677787980818283846 unmodified linesfrom app_fireworks import demo as demo_fireworksfrom app_huggingface import demo as demo_huggingfacefrom app_meta import demo as demo_metafrom app_mistral import demo as demo_mistralfrom app_nvidia import demo as demo_nvidiafrom app_omini import demo as demo_ominifrom app_paligemma import demo as demo_paligemma20 unmodified linesfrom app_groq_coder import demo as demo_groq_coderfrom app_openai_coder import demo as demo_openai_coderfrom app_langchain import demo as demo_langchainfrom utils import get_app# Create mapping of providers to their demosPROVIDERS = {"Langchain Agent": demo_langchain,"Gemini Camera": demo_gemini_camera,"Gemini Coder": demo_gemini_coder,1 unmodified line"OpenAI": demo_openai,"Gemini": demo_gemini,"Gemini Voice": demo_gemini_voice,"Groq Coder": demo_groq_coder,"Hyperbolic Coder": demo_hyperbolic_coder,"SmolAgents": demo_smolagents,21 unmodified lines"Allen AI": demo_allenai,"Perplexity": demo_perplexity,"Experimental": demo_experimental,"Mistral": demo_mistral,"NVIDIA": demo_nvidia,}demo = get_app(models=list(PROVIDERS.keys()),default_model="Langchain Agent",src=PROVIDERS,dropdown_label="Select Provider",)6 unmodified lines78910111220 unmodified lines333435363738394041424344451 unmodified line4748495051525321 unmodified lines7576777879808182838485866 unmodified linesfrom app_fireworks import demo as demo_fireworksfrom app_huggingface import demo as demo_huggingfacefrom app_meta import demo as demo_metafrom app_nvidia import demo as demo_nvidiafrom app_omini import demo as demo_ominifrom app_paligemma import demo as demo_paligemma20 unmodified linesfrom app_groq_coder import demo as demo_groq_coderfrom app_openai_coder import demo as demo_openai_coderfrom app_langchain import demo as demo_langchainfrom app_mistral_coder import demo as demo_mistral_coderfrom app_mistral import demo as demo_mistralfrom utils import get_app# Create mapping of providers to their demosPROVIDERS = {"Mistral Codestral": demo_mistral_coder,"Langchain Agent": demo_langchain,"Gemini Camera": demo_gemini_camera,"Gemini Coder": demo_gemini_coder,1 unmodified line"OpenAI": demo_openai,"Gemini": demo_gemini,"Gemini Voice": demo_gemini_voice,"Mistral": demo_mistral,"Groq Coder": demo_groq_coder,"Hyperbolic Coder": demo_hyperbolic_coder,"SmolAgents": demo_smolagents,21 unmodified lines"Allen AI": demo_allenai,"Perplexity": demo_perplexity,"Experimental": demo_experimental,"NVIDIA": demo_nvidia,}demo = get_app(models=list(PROVIDERS.keys()),default_model="Mistral Codestral",src=PROVIDERS,dropdown_label="Select Provider",)
1234567891011121314151617181920212223242526import osimport mistral_gradiofrom utils import get_appdemo = get_app(models=["mistral-large-latest","pixtral-large-latest","ministral-3b-latest","ministral-8b-latest","mistral-small-latest","codestral-latest","mistral-embed","mistral-moderation-latest","pixtral-12b-2409","open-mistral-nemo","open-codestral-mamba",],default_model="pixtral-large-latest",src=mistral_gradio.registry,accept_token=not os.getenv("MISTRAL_API_KEY"),)if __name__ == "__main__":123456789101112131415161718192021import ai_gradiofrom utils_ai_gradio import get_app# Get the mistral models but keep their full names for loadingMISTRAL_MODELS_FULL = [k for k in ai_gradio.registry.keys() if k.startswith("mistral:")]# Create display names without the prefixMISTRAL_MODELS_DISPLAY = [k.replace("mistral:", "") for k in MISTRAL_MODELS_FULL]# Create and launch the interface using get_app utilitydemo = get_app(models=MISTRAL_MODELS_FULL, # Use the full names with prefixdefault_model=MISTRAL_MODELS_FULL[5],dropdown_label="Select Mistral Model",choices=MISTRAL_MODELS_DISPLAY, # Display names without prefixfill_height=True,)if __name__ == "__main__":
1234567891011121314151617181920212223import ai_gradio
from utils_ai_gradio import get_app
# Get the mistral models but keep their full names for loadingMISTRAL_MODELS_FULL = [k for k in ai_gradio.registry.keys() if k.startswith("mistral:")]
# Create display names without the prefixMISTRAL_MODELS_DISPLAY = [k.replace("mistral:", "") for k in MISTRAL_MODELS_FULL]
# Create and launch the interface using get_app utilitydemo2 = get_app( models=MISTRAL_MODELS_FULL, # Use the full names with prefix default_model=MISTRAL_MODELS_FULL[5], dropdown_label="Select Mistral Model", choices=MISTRAL_MODELS_DISPLAY, # Display names without prefix fill_height=True, coder=True,)
if __name__ == "__main__": demo2.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]>=0.2.14",][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]>=0.2.15",][tool.uv.sources]
1 unmodified line2345678577 unmodified lines5865875885895905915921 unmodified line# uv pip compile pyproject.toml -o requirements.txtaccelerate==1.2.1# via ai-gradioai-gradio==0.2.14# via anychat (pyproject.toml)aiofiles==23.2.1# via gradio577 unmodified linesmistral-gradio @ git+https://github.com/AK391/mistral-gradio.git@dfef7dc871ea35100743a415fde8a57a30c49fcb# via anychat (pyproject.toml)mistralai==1.2.6# via mistral-gradiommh3==5.0.1# via chromadbmodelscope-studio==1.0.21 unmodified line2345678577 unmodified lines5865875885895905915925935941 unmodified line# uv pip compile pyproject.toml -o requirements.txtaccelerate==1.2.1# via ai-gradioai-gradio==0.2.15# via anychat (pyproject.toml)aiofiles==23.2.1# via gradio577 unmodified linesmistral-gradio @ git+https://github.com/AK391/mistral-gradio.git@dfef7dc871ea35100743a415fde8a57a30c49fcb# via anychat (pyproject.toml)mistralai==1.2.6# via# ai-gradio# mistral-gradiommh3==5.0.1# via chromadbmodelscope-studio==1.0.2
app.py+5-3
app_mistral.py+14-19
app_mistral_coder.pyAdded+23
pyproject.toml+1-1
requirements.txt+4-2