Download app_mistral.py from CodeByBB/anycoder: direct link, hf CLI and curl.
- Browser
- Download file 608 Bytes
-
https://huggingface.co/spaces/CodeByBB/anycoder/resolve/00a63fb4dfc4ddabad0f6a88198160483ecbde6e/app_mistral.py
- Command line
-
hf download hf://spaces/CodeByBB/anycoder@00a63fb4dfc4ddabad0f6a88198160483ecbde6e/app_mistral.py
-
curl -L -o app_mistral.py https://huggingface.co/spaces/CodeByBB/anycoder/resolve/00a63fb4dfc4ddabad0f6a88198160483ecbde6e/app_mistral.py
608 Bytes
| import os | |
| import mistral_gradio | |
| from utils import get_app | |
| demo = 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__": | |
| demo.launch() | |