DEV Community

Cover image for ILLA Cloud x Hugging Face: Unleash the possibility with AI Model
JerryMaoMao for ILLA Cloud

Posted on • Updated on • Originally published at

ILLA Cloud x Hugging Face: Unleash the possibility with AI Model

ILLA proudly announces a partnership with Hugging Face, a suite of natural language processing (NLP) tools and services. They are most well-known for their open-source NLP library, which provides text generation, language translation, and named entity recognition tools. With Hugging Face, ILLA is more productive than before. Our users can do more with AI.

ILLA Cloud

ILLA Cloud is a low-code development platform with dozens of front-end components and database API integrations. You can use ILLA Cloud to build the front-end interface by dragging and dropping components and connecting to your database or API to complete full-stack development quickly.

Hugging Face

Hugging Face is the Github of the machine learning community, with hundreds of thousands of pre-trained models and 10,000 datasets currently available. You can freely access models and datasets shared by other industry experts or host and deploy your models on Hugging Face.

Some examples of models available in the Hugging Face library include:

  1. BERT (Bidirectional Encoder Representations from Transformers): BERT is a transformer-based model developed by Google for various NLP tasks. It has achieved state-of-the-art results in language understanding and machine translation tasks.

  2. GPT (Generative Pre-training Transformer): GPT is another transformer-based model developed by OpenAI. It is primarily used for language generation tasks, such as translation and text summarization.

  3. RoBERTa (Robustly Optimized BERT): RoBERTa is an extension of the BERT model that was developed to improve BERT's performance on various NLP tasks.

  4. XLNet (eXtraordinary LanguageNet): XLNet is a transformer-based model developed by Google that is designed to improve the performance of transformer models on language understanding tasks.

  5. ALBERT (A Lite BERT): ALBERT is a version of the BERT model that was developed to be more efficient and faster to train while maintaining good performance on NLP tasks.

What you can do with Hugging Face in ILLA Cloud

In Hugging Face, over 130,000 machine-learning models are available through the public API, which you can use and test for free at In addition, if you need a solution for production scenarios, you can use Hugging Face's Inference Endpoints, which can be deployed and accessed at

ILLA Cloud provides dozens of commonly used front-end components, allowing you to build different front-end interfaces based on your specific needs quickly. At the same time, ILLA offers a connection to Hugging Face, allowing you to quickly connect to the API, send requests, and receive returned data. By connecting the API and front-end components, you can implement the requirement that users can enter content through the front end and submit it to the API. The API returns the generated content to be displayed on the front end.

How to use Hugging Face in ILLA Cloud

Step 1: Build UI with components on ILLA Cloud

Based on the expected usage scenario you described, build a front-end interface. For example, you could use input and image components if your product takes in text and outputs an image. If your product takes in text and outputs generated text, you could use input and text components.

The following image is an example of a front-end page for a product that answers questions based on context.


Step 2: Create a Hugging Face Resource and config the Actions

Click + New in the action list and select Hugging Face Inference API.


Fill in the form to connect to your Hugging Face:

Name: The name that will be displayed in ILLA

Token: Get in your Hugging Face profile settings


Confirm the model information in Hugging Face before configuring the actions:

Select a model from Hugging Face Model Page

Let’s use deepset/roberta-base-squad2as an example. Enter the detail page > click Deploy > Click Inference API


The parameters after “inputs” are what you should fill in ILLA.


In ILLA Cloud, we should fill in the Model ID and Parameter. Taking the above model as an example, the “inputs” is a key-value pair, so we can fill in it with key-value or JSON.



And we also support the text input and binary input which can meet all Hugging Face Inference API connections.

Step 3: Connect actions to components

To pass the user's front-end input to the API, you can use {{ to retrieve data inputted in the component. For example, input2 is the component to input the question and input1 is the component to input context, we can fill question and context in key, and fill {{ input.value }} in value:

"question": {{input2.value}},
"context": {{input1.value}}
Enter fullscreen mode Exit fullscreen mode

Before displaying the output data of the Action in the front-end component, we should confirm which field the output of different models is placed in. Still taking deepset/roberta-base-squad2 as an example, the results are as follows:


So we can get the answer with {{[0].answer }}(the textQuestion is the name of the action).






In conclusion, the partnership between ILLA and Hugging Face is set to revolutionize the world of low-code development. With the ability to access over 130,000 pre-trained machine-learning models, and the ease of use provided by ILLA Cloud, developers can now build highly sophisticated applications with incredible speed and efficiency. This partnership offers a complete solution for NLP and AI, making it possible for users to do more with AI than ever before.

Top comments (0)