How to deploy a Panel app to Hugging Face using Docker?

Share this & earn $10
Published at : January 08, 2023

- How to deploy a Panel app to Hugging Face using Docker?
- How to run Docker locally?
- Can we serve multiple Panel apps at the same time on Hugging Face?

- Blog post: https://towardsdatascience.com/how-to-deploy-a-panel-app-to-hugging-face-using-docker-6189e3789718?sk=9c2bbd9bdbc3917e39dbd1fc9d1a5771
- Hugging Face Space 1: https://huggingface.co/spaces/sophiamyang/panel_example
- Standalone app link 1: https://sophiamyang-panel-example.hf.space/app
- Hugging Face Space 2: https://huggingface.co/spaces/sophiamyang/Panel_apps
- Standalone app link 2: https://sophiamyang-panel-apps.hf.space/

Mentioned in the video:
- Blog post 3 ways to build a Panel visualization dashboard: https://towardsdatascience.com/3-ways-to-build-a-panel-visualization-dashboard-6e14148f529d?sk=2cd93ae39586305bae8cfaead2bf7bb4

UPDATES:
- To run Docker locally, instead of changing ​​sophiamyang-panel-example.hf.space to 0.0.0.0:7860. A better way is to add 0.0.0.0:7860 to the allowed WebSockets in addition to the Hugging Face URL in the DockerFile: CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "sophiamyang-panel-example.hf.space", "--allow-websocket-origin", "0.0.0.0:7860"]


🌼 About me 🌼
Sophia Yang is a Senior Data Scientist working at a tech company.


🔔 SUBSCRIBE to my channel: https://www.youtube.com/c/SophiaYangDS?sub_confirmation=1


⭐ Stay in touch ⭐
▶ YouTube: https://youtube.com/SophiaYangDS
✍️ Medium: https://sophiamyang.medium.com
🐦 Twitter: https://twitter.com/sophiamyang
🤝 Linkedin: https://www.linkedin.com/in/sophiamyang/
📚 DS/ML Book Club: https://dsbookclub.github.io
📧 Email: sophiayang.ds@gmail.com
💚 #datascience How to deploy a Panel app to Hugging Face using Docker?
deployPanelHugging