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

Contribute a template to Voila? #1

Open
jtpio opened this issue Aug 7, 2023 · 5 comments
Open

Contribute a template to Voila? #1

jtpio opened this issue Aug 7, 2023 · 5 comments

Comments

@jtpio
Copy link

jtpio commented Aug 7, 2023

Thanks for putting that repo together!

Maybe this could serve as the base for documenting how to deploy Voila to Hugging Face Spaces? This documentation improvement is tracked in voila-dashboards/voila#1373.

@giswqs
Copy link
Member

giswqs commented Aug 7, 2023

Sure. Please feel free to use this repo to adapt to your needs.

Essentially, you only need requirements.txt and README.md. The critical part is to specify app_port: 8866 in the README file YAML header as follows.

image

One werid thing is that the HF repo will show space refused to connect
https://huggingface.co/spaces/giswqs/voila-geospatial
image

But if you go to the space direct URL. it will work just fine.
https://giswqs-voila-geospatial.hf.space/
image

@jtpio
Copy link
Author

jtpio commented Aug 7, 2023

Nice thanks @giswqs for the pointers!

you only need requirements.txt and README.md

So no need for a Dockerfile?

@giswqs
Copy link
Member

giswqs commented Aug 7, 2023

My bad. The Dockerfile is needed.

@trungleduc
Copy link

One werid thing is that the HF repo will show space refused to connect https://huggingface.co/spaces/giswqs/voila-geospatial image

Hi, you can fix this issue by configuring the Tornado server. I used the voila.json file to configure this setting (https://github.com/voila-dashboards/voila-huggingface/blob/main/voila.json), but you can pass it through the CLI

@giswqs
Copy link
Member

giswqs commented Aug 14, 2023

@trungleduc I added voila.json, but the issue persists. Anything else needs to be changed?

https://huggingface.co/spaces/giswqs/voila-geospatial/blob/main/voila.json

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

3 participants