TLDR: Gradio Notebook is a notebook component for generative AI that offers the fastest way to create a Hugging Face space (in < 10 lines of code), and a familiar notebook interface for interacting with any combination of text, image and audio models in a single space. Follow this Quickstart to create a gradio notebook for yourself:<p>https://huggingface.co/spaces/lastmileai/gradio-notebook-template<p>Hi HN Community!<p>I’m Sarmad, co-founder of LastMile AI, and today I’m excited to share Gradio Notebook, our latest open-source project in collaboration with Hugging Face. Gradio Notebook [1] is a notebook component that offers an interactive playground for Hugging Face models of any modality in a single Hugging Face space. It brings the familiar UX of a notebook to generative AI model inference, and enables much richer interactions than a chat interface allows.<p>If you're a Hugging Face space creator looking for speed and ease of development, Gradio Notebook gets your space ready in 5 minutes with < 10 lines of code (without having to build your own UI at all).<p>Key features:<p>* Use any combination of text, image, or audio models in a single space, and even chain models together.<p>* Interact and experiment with models using a pre-built notebook UI, which is a familiar, intuitive interface for multimodal interaction. At its core, the notebook contains cells (we call them “prompts”), which are associated with a model to run.<p>* Get a shareable URL to share the space outputs with others (my personal favorite feature, since it isn’t possible on HF today).<p>* Download your space config (prompts and model settings) as a JSON file, and use it in your application via our SDK [2].<p>This is a new user experience for generative AI, and for Hugging Face, and we are looking for feedback. If you frequently use HF spaces, and especially if you like to <i>build</i> spaces, please give this a try and get in touch!<p>Excited to hear from you, and looking forward to seeing what you create with Gradio Notebook!
To get started, please use the Quickstart [1], which contains everything to set up and play with the component<p>[1] Link to Quickstart:<p>https://huggingface.co/spaces/lastmileai/gradio-notebook-template<p>[2] SDK:<p>https://aiconfig.lastmileai.dev/docs/gradio-notebook#gradio-notebook-api<p>[3] Gradio Notebook Docs:<p>https://aiconfig.lastmileai.dev/docs/gradio-notebook<p>[4] Repo (it’s all open source):<p>https://github.com/lastmile-ai/aiconfig/tree/main/gradio-notebook