Spaces:
Runtime error
Runtime error
Download callbacks.jl from samirparhi-dev/shrang: direct link, hf CLI and curl.
- Browser
- Download file 346 Bytes
-
https://huggingface.co/spaces/samirparhi-dev/shrang/resolve/main/callbacks.jl
- Command line
-
hf download hf://spaces/samirparhi-dev/shrang/callbacks.jl
-
curl -L -o callbacks.jl https://huggingface.co/spaces/samirparhi-dev/shrang/resolve/main/callbacks.jl
346 Bytes
| using Dash | |
| include("utils.jl") | |
| app.callback( | |
| Output("page-content", "children"), | |
| Input("url", "pathname") | |
| ) do pathname | |
| if pathname == "#github-actions" | |
| data = fetch_json_data(url::String) | |
| return render_vulnerability_cards(data) | |
| else | |
| return html_div("Select a category from the side panel.") | |
| end | |
| end | |