Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't you render a chart containing js? #2296

Closed
tt0203 opened this issue Sep 20, 2022 · 1 comment
Closed

Can't you render a chart containing js? #2296

tt0203 opened this issue Sep 20, 2022 · 1 comment

Comments

@tt0203
Copy link

tt0203 commented Sep 20, 2022

I have an html file referencing js,the graph is not rendered.
My code is in the following URL:
https://huggingface.co/spaces/changxin/chart/blob/main/app.py
When I save the html code as a local file, it can be rendered.
How does the gr.HTML function render this html code?

@abidlabs
Copy link
Member

Hi @tt0203, at this moment, I believe you cannot access external javascript files from inside your Gradio app. This may change in the future (please track #2137), but at this moment we do not support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants