Spaces:
Running
Running
Download gradio_runner.py from ServiceNow-AI/Apriel-Chat: direct link, hf CLI and curl.
- Browser
- Download file 289 Bytes
-
https://huggingface.co/spaces/ServiceNow-AI/Apriel-Chat/resolve/main/gradio_runner.py
- Command line
-
hf download hf://spaces/ServiceNow-AI/Apriel-Chat/gradio_runner.py
-
curl -L -o gradio_runner.py https://huggingface.co/spaces/ServiceNow-AI/Apriel-Chat/resolve/main/gradio_runner.py
289 Bytes
| import re | |
| import sys | |
| from gradio.cli import cli | |
| # This runs a gradio app so that it can be automatically reloaded in the browser | |
| # Example: python gradio_runner.py app.py | |
| if __name__ == '__main__': | |
| sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) | |
| sys.exit(cli()) | |