GitHub Actions commited on
Commit
a8b67a8
·
1 Parent(s): f6ead22

fix: easter-egg script now properly injected via Gradio head parameter

Browse files

Gradio doesn't execute scripts in innerHTML. The warning was correct.
Moved the script from gr.HTML() component to the head parameter of
gr.Blocks(), where it executes properly on page load.

The HTML component now only contains CSS and the ticker element.
The script is injected into document head by Gradio and runs correctly.

Press 'e' in any tab to toggle the ⚡ LIVE ticker.

1 file changed +2 -2
hearthnet/ui/app.py+2-2