Download app_xai.py from CodeByBB/anycoder: direct link, hf CLI and curl.
- Browser
- Download file 304 Bytes
-
https://huggingface.co/spaces/CodeByBB/anycoder/resolve/00a63fb4dfc4ddabad0f6a88198160483ecbde6e/app_xai.py
- Command line
-
hf download hf://spaces/CodeByBB/anycoder@00a63fb4dfc4ddabad0f6a88198160483ecbde6e/app_xai.py
-
curl -L -o app_xai.py https://huggingface.co/spaces/CodeByBB/anycoder/resolve/00a63fb4dfc4ddabad0f6a88198160483ecbde6e/app_xai.py
304 Bytes
| import os | |
| import xai_gradio | |
| from utils import get_app | |
| demo = get_app( | |
| models=[ | |
| "grok-beta", | |
| "grok-vision-beta", | |
| ], | |
| default_model="grok-vision-beta", | |
| src=xai_gradio.registry, | |
| accept_token=not os.getenv("XAI_API_KEY"), | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |