Hello all,
I wanted to share a collection of open-source Dash apps that I’ve been working on in the past few weeks. What they have in common is that they all use Huggingface’s Transformers library (DistilBART, MarianNMT and DialoGPT), and they all run much better on GPU than CPU.
Making Dash apps accessible has been extremely important to us, and the need for GPUs made it harder for everyone to try and modify those apps locally. Fortunately, with the release of JupyterDash v0.3, we can now run JupyterDash apps directly on Colab. For this occasion, we recreated our transformers apps as Colab notebooks (GPU-enabled), so you can get it running on the cloud in less than a minute. Here are links + short summaries of what each of them are doing:
- Dash Automatic Summarization (Github Code — Colab Demo): Summarizes large bodies of text (e.g. an article) into a single sentence using DistilBART.
- Dash Chatbot (Github Code — Colab Demo): Lets you talk with a chatbot (powered by DialoGPT) in a messaging interface.
- Dash Neural Machine Translation (Github Code — Colab Demo): Translate documents from English into any romance language (French, Spanish, German, Italian, etc.)
For more details, see below:
Dash Chatbot
This app lets you chat with DialoGPT, a chatbot based on GPT that was trained on 147M comments+replies from Reddit. The model was developed by Microsoft Research, and it is hosted on Huggingface’s model repository.
Dash Automatic Summarization
This app lets you use DistilBART for automatically summarizing a piece of text.
Dash Neural Machine Translation
This app written in less than 150 lines of Python lets you build a full fledge application for translating english text into romance languages, using Huggingface’s version of Marian. This app can be easily modified to incorporate other languages, other models, and even other frameworks (such as fairseq).
Conclusion
Happy to hear your thoughts on each of the apps, and excited to see how you will modify those apps to make something unique for yourself.