Download app_cohere.py from CodeByBB/anycoder: direct link, hf CLI and curl.
- Browser
- Download file 408 Bytes
-
https://huggingface.co/spaces/CodeByBB/anycoder/resolve/d3e483fbb20abcf45a4e1bcbd1dd2fa5fe49a2d9/app_cohere.py
- Command line
-
hf download hf://spaces/CodeByBB/anycoder@d3e483fbb20abcf45a4e1bcbd1dd2fa5fe49a2d9/app_cohere.py
-
curl -L -o app_cohere.py https://huggingface.co/spaces/CodeByBB/anycoder/resolve/d3e483fbb20abcf45a4e1bcbd1dd2fa5fe49a2d9/app_cohere.py
408 Bytes
| import os | |
| import cohere_gradio | |
| from utils import get_app | |
| demo = get_app( | |
| models=[ | |
| "command-r", | |
| "command-r-08-2024", | |
| "command-r-plus", | |
| "command-r-plus-08-2024", | |
| "command-r7b-12-2024", | |
| ], | |
| default_model="command-r7b-12-2024", | |
| src=cohere_gradio.registry, | |
| accept_token=not os.getenv("COHERE_API_KEY"), | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |