Skip to content

Resources not loading on remote server #1384

Answered by rht
cakiki asked this question in Q&A
Discussion options

You must be logged in to vote

This is where the JS files can be accessed, e.g. https://hf.space/embed/cakiki/mesa/static/js/GridDraw.js. But huggingface.co assumes it is https://hf.space/static/js/GridDraw.js. If you want to make it work on huggingface.co, you have to fork Mesa, and in https://github.com/projectmesa/mesa/blob/main/mesa/visualization/templates/modular_template.html, change the /static/... with absolute path https://hf.space/embed/cakiki/mesa/static/....

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@rht
Comment options

@cakiki
Comment options

@rht
Comment options

@cakiki
Comment options

@rht
Comment options

Answer selected by cakiki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants