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

support got HuggingFace raw (just like GitHub raw) #83

Open
trusktr opened this issue Feb 10, 2025 · 3 comments
Open

support got HuggingFace raw (just like GitHub raw) #83

trusktr opened this issue Feb 10, 2025 · 3 comments

Comments

@trusktr
Copy link

trusktr commented Feb 10, 2025

I think it should simply be a matter of mapping the new URL format. For example:

https://huggingface.co/spaces/trusktr/trusktr/raw/bd60cfd1e0e43e35b20f836d53a524da179fc967/index.html

Just like GitHub, it sends things with text/plain mime type.

I love HuggingFace because it will automatically host a live version of the most recent HTML, for example, here my HuggingFace repo landing page,

https://huggingface.co/spaces/trusktr/trusktr

However it doesn't have commit hash in the URL, it will only show the latest, so having something like "raw.huggingfacehack.com" would be awesome.

@trusktr
Copy link
Author

trusktr commented Feb 10, 2025

Might be nice to support any others like GitLab too while at it, and the UI could have a select to choose which repo host to use. F.e. GitLab has raw too:

https://gitlab.com/Rockyspade/three.js/-/raw/master/examples/canvas_camera_orthographic2.html

@neoascetic
Copy link
Owner

neoascetic commented Feb 10, 2025 via email

@neoascetic
Copy link
Owner

Might be nice to support any others like GitLab too while at it, and the UI could have a select to choose which repo host to use. F.e. GitLab has raw too:

https://gitlab.com/Rockyspade/three.js/-/raw/master/examples/canvas_camera_orthographic2.html

For example, the link you've provided works with

https://gl.githack.com/Rockyspade/three.js/-/raw/master/examples/canvas_camera_orthographic2.html

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