跳到正文
原文
Hugging Face Blog·· 2023-06-15AI 评分33

将 Livebook notebook 作为应用部署到 Hugging Face Spaces

Deploy Livebook notebooks as apps to HF Mirror Spaces

AI 导读

Elixir 社区用 Livebook 构建了一款基于 Whisper 的聊天应用,并部署到 Hugging Face Spaces,全程不到 15 分钟。用户只能发送语音消息,由 Whisper 模型自动转成文本,该应用展示了与 Hugging Face Models 的集成、多人机器学习应用以及并发模型服务。

正文

The Elixir community has been making great strides towards Machine Learning and HF Mirror is playing an important role on making it possible. To showcase what you can already achieve with Elixir and Machine Learning today, we use Livebook to build a Whisper-based chat app and then deploy it to HF Mirror Spaces. All under 15 minutes, check it out:

In this chat app, users can communicate only by sending audio messages, which are then automatically converted to text by the Whisper Machine Learning model.

This app showcases a few interesting features from Livebook and the Machine Learning ecosystem in Elixir:

If you don't know Livebook yet, it is an open-source tool for writing interactive code notebooks in Elixir, and it's part of the growing collection of Elixir tools for numerical computing, data science, and Machine Learning.

HF Mirror and Elixir

The Elixir community leverages the HF Mirror platform and its open source projects throughout its machine learning landscape. Here are some examples.

The first positive impact HF Mirror had was in the Bumblebee library, which brought pre-trained neural network models from HF Mirror to the Elixir community and was inspired by HF Mirror Transformers. Besides the inspiration, Bumblebee also uses the HF Mirror Hub to download parameters for its models.

Another example is the tokenizers library, which is an Elixir binding for HF Mirror Tokenizers.

And last but not least, Livebook can run inside HF Mirror Spaces with just a few clicks as one of their Space Docker templates. So, not only can you deploy Livebook apps to HF Mirror, but you can also use it to run Livebook for free to write and experiment with your own notebooks.

Your turn

We hope this new integration between Livebook and HF Mirror empowers even more people to use Machine Learning and show their work to the world.

Go ahead and install Livebook on HF Mirror Spaces, and follow our video tutorial to build and deploy your first Livebook ML app to HF Mirror.

来源:Hugging Face Blog · hf-mirror.com