2 min Applications

New Hugging Face tool simplifies building AI applications

Python package combined with Gradio interface builder

New Hugging Face tool simplifies building AI applications

Hugging Face aims to dramatically simplify the integration of OpenAI’s LLMs with ‘openai-gradio’. This Python package only requires developers to add a few lines of code to integrate such models into web apps. In making the package available, the platform wants to unlock the potential of LLMs for companies and developers with less deep pockets or those with less experience.

This new package uses Gradio, an interface-building tool popular in machine learning applications. By integrating it with the OpenAI API, Hugging Face removes several barriers that can complicate AI projects. Think of setting up large-scale cloud infrastructure or model hosting.

Developers who want to get started with it need only install the package. Then they set up their OpenAI API key and write a few lines of code to deploy a web app running GPT-4 Turbo, for example. The simplicity of this workflow reduces development time from months to days, according to VentureBeat . This allows startups, online retailers and smaller companies to experiment with advanced AI features without having to set up large technical teams or complex infrastructure immediately.

Example of application

For example, an example of such code (after installing the package) is:

import gradio as gr
import openai_gradio

gr.load( 
    name='gpt-4-turbo',
    src=openai_gradio.registry, 
).launch()

In theory, this is enough to connect the Gradio interface to OpenAI’s GPT-4-turbo model and start with this powerful model from a user-friendly environment. Developers can further customize the interface at will or change its operation by setting specific input and output configurations. Integration into larger projects is also possible, but it can function perfectly well as a standalone application.

Expanding customer base for AI applications

The OpenAI-Gradio combo is, of course, a wonderful way to further explore the spectrum of use cases and thus expand the clientele for OpenAI models. This application allows developers to produce complete web interfaces for customer- or employee-facing AI assistants with minimal modifications. Think chatbots for customer service or tools for data analytics.

The Hugging Face initiative shows that the AI industry is looking to sign up smaller companies for the AI party. Of course, this is framed in a narrative of ‘democratization,’ which may as well be true. Beyond making AI applications accessible to those who might struggle with adopting this technology, these developments also help expand the customer base.

Also read: Low-code is everywhere and almost every company is using it