Download run.py from gradio/html_head_script_order_main: direct link, hf CLI and curl.
- Browser
- Download file 489 Bytes
-
https://huggingface.co/spaces/gradio/html_head_script_order_main/resolve/6b773b787b361a3ec8db2eee4cb0aa5a80098f07/run.py
- Command line
-
hf download hf://spaces/gradio/html_head_script_order_main@6b773b787b361a3ec8db2eee4cb0aa5a80098f07/run.py
-
curl -L -o run.py https://huggingface.co/spaces/gradio/html_head_script_order_main/resolve/6b773b787b361a3ec8db2eee4cb0aa5a80098f07/run.py
489 Bytes
| import gradio as gr | |
| # Fixture for the head-script order test: "plugin" depends on a global set by | |
| # "core", so it must run after core (document order). | |
| with gr.Blocks() as demo: | |
| gr.HTML( | |
| html_template="<div id='order-result'>pending</div>", | |
| head=( | |
| '<script src="/__head_order__/core.js"></script>' | |
| '<script src="/__head_order__/plugin.js"></script>' | |
| ), | |
| elem_id="order_demo", | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |