Spaces:
Running
Running
Download app_mistral.py from akhaliq/anycoder: direct link, hf CLI and curl.
- Browser
- Download file 608 Bytes
-
https://huggingface.co/spaces/akhaliq/anycoder/resolve/refs%2Fpr%2F26/app_mistral.py
- Command line
-
hf download hf://spaces/akhaliq/anycoder@refs/pr/26/app_mistral.py
-
curl -L -o app_mistral.py https://huggingface.co/spaces/akhaliq/anycoder/resolve/refs%2Fpr%2F26/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() | |