Spaces:
Running
Running
Download app_sailor.py from akhaliq/anycoder: direct link, hf CLI and curl.
- Browser
- Download file 227 Bytes
-
https://huggingface.co/spaces/akhaliq/anycoder/resolve/4f0f41bb020d1a2478f53372e7359c5a8b02c7f5/app_sailor.py
- Command line
-
hf download hf://spaces/akhaliq/anycoder@4f0f41bb020d1a2478f53372e7359c5a8b02c7f5/app_sailor.py
-
curl -L -o app_sailor.py https://huggingface.co/spaces/akhaliq/anycoder/resolve/4f0f41bb020d1a2478f53372e7359c5a8b02c7f5/app_sailor.py
227 Bytes
| import gradio as gr | |
| import spaces | |
| import transformers_gradio | |
| demo = gr.load(name="sail/Sailor2-20B-Chat", src=transformers_gradio.registry) | |
| demo.fn = spaces.GPU()(demo.fn) | |
| for fn in demo.fns.values(): | |
| fn.api_name = False | |