Panel Data APP - GPT2 Show Case

A user of Panel asked for help creating a data app based on the GPT2 transformer and bokeh plots Not able to update Bokeh bar plot based on button click which updates source.data - Panel - HoloViz Discourse.

I took up the challenge and in an hour I had created this. I can only agree with the prediction :slight_smile:

Check out the code Hugging Face GPT2 Transformer Example · GitHub.

Does any one know if I can host the app on spaces?

You can ask to join the beta here I believe!

1 Like

Inspired by Deploy on Hugging Face - Mercury Docs (mercury-docs.readthedocs.io)I tried to deploy a Panel app in hugging face spaces.

But I cannot get it working. I cannot create the web socket connection.

The logs look like

2022-04-23 21:03:54,107 400 GET /ws (172.30.0.55) 0.47ms
2022-04-23 22:18:25,800 400 GET /ws (172.30.0.55) 0.47ms
2022-04-24 02:25:40,290 400 GET /ws (172.30.0.55) 0.47ms
2022-04-24 02:25:53,151 400 GET /ws (172.30.0.55) 0.47ms
2022-04-24 02:25:57,850 400 GET /ws (172.30.0.55) 0.47ms
2022-04-24 02:27:02,606 400 GET /ws (172.30.0.55) 0.47ms
2022-04-24 02:47:30,119 400 GET /ws (172.30.0.55) 0.52ms
2022-04-24 03:34:12,633 400 GET /ws (172.30.0.55) 0.58ms
2022-04-24 03:48:38,858 400 GET /ws (172.30.0.55) 0.47ms

For more details see my space Awesome Panel - a Hugging Face Space by MarcSkovMadsen

How do I solve this?

Cross posted to How do I get my Panel App deployed on Hugging Face - Panel - HoloViz Discourse