just use mistral
Browse filesFiles changed (3)
- app.py+2-3
- app_mistral.py+1
- app_mistral_coder.pyDeleted-23
32 unmodified lines333435363637383940424142434433 unmodified lines787980828182838432 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 Coder": demo_mistral_coder, "Mistral": demo_mistral, "Langchain Agent": demo_langchain, "Gemini Camera": demo_gemini_camera, "Gemini Coder": demo_gemini_coder,33 unmodified lines
demo = get_app( models=list(PROVIDERS.keys()), default_model="Mistral Codestral", default_model="Mistral", src=PROVIDERS, dropdown_label="Select Provider",)15 unmodified lines1617181920212215 unmodified lines dropdown_label="Select Mistral Model", choices=MISTRAL_MODELS_DISPLAY, # Display names without prefix fill_height=True, coder=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 utilitydemo = 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__": demo.launch()app.py+2-3
app_mistral.py+1
app_mistral_coder.pyDeleted-23