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

Livebook笔记本在Hugging Face Spaces中的应用部署

Deploy Livebook notebooks as apps to Hugging Face Spaces

AI 导读

Hugging Face推出Livebook笔记本在Hugging Face Spaces中的应用部署,用户可通过Livebook构建基于Whisper模型的聊天应用,并自动将音频消息转换为文本。该应用展示了Livebook和Elixir机器学习生态系统的集成,包括与Hugging Face模型的集成、多玩家机器学习应用和并发机器学习模型服务等功能。

原文

The Elixir community has been making great strides towards Machine Learning and Hugging Face 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 Hugging Face 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.

Hugging Face and Elixir

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

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

Another example is the tokenizers library, which is an Elixir binding for Hugging Face Tokenizers.

And last but not least, Livebook can run inside Hugging Face Spaces with just a few clicks as one of their Space Docker templates. So, not only can you deploy Livebook apps to Hugging Face, 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 Hugging Face empowers even more people to use Machine Learning and show their work to the world.

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

来源:Hugging Face Blog · huggingface.co