Skip to content

gr.Blocks head argument not working as intended #6426

Closed
@jonathanasdf

Description

@jonathanasdf

Looking at the html source for the gradio app and testing this a bit more, it seems like only the first script tag from the head is being applied

"""
head = """
<script>console.log('hello')</script>
<script>console.log('world')</script>
"""
with gr.Blocks(head=head):

image

Additionally, in this case it seems like the script tag is added to the head section after the page already loads, so it never gets executed? The console output is empty.

Originally posted by @jonathanasdf in #5954 (comment)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions