--- title: README emoji: šŸ’» colorFrom: indigo colorTo: gray sdk: static pinned: false ---

Welcome to the Gradio Blocks Party šŸ„³

Gradio Banner

Happy to invite you to the Gradio Blocks Party - a community event in which we will setup spaces for models using the new Gradio Blocks API. Blocks allows you to build web-based demos in a flexible way using the Gradio library. The event will take place from May 16th to 31st. We will be organizing this event on github and the huggingface discord channel.



What is Gradio?

Gradio is a Python library that allows you to quickly build web-based machine learning demos, data science dashboards, or other kinds of web apps, entirely in Python. These web apps can be launched from wherever you use Python (jupyter notebooks, colab notebooks, Python terminal, etc.) and shared with anyone instantly using Gradio's auto-generated share links. To learn more about Gradio see the Getting Started Guide: https://gradio.app/getting_started/ and the new Course on Huggingface about Gradio: Gradio Course.


Gradio can be installed via pip and comes preinstalled in Hugging Face Spaces, the latest version of Gradio can be set in the README in spaces by setting the sdk_version for example sdk_version: 3.0b1

pip install gradio to install gradio locally


What is Blocks?

gradio.Blocks is a low-level API that allows you to have full control over the data flows and layout of your application. You can build very complex, multi-step applications using Blocks. If you have already used gradio.Interface, you know that you can easily create fully-fledged machine learning demos with just a few lines of code. The Interface API is very convenient but in some cases may not be sufficiently flexible for your needs. For example, you might want to:


to learn more about Blocks see the guide https://www.gradio.app/introduction_to_blocks/


What is Hugging Face Spaces?

Spaces are a simple way to host ML demo apps directly on your profile or your organizationā€™s profile on Hugging Face. This allows you to create your ML portfolio, showcase your projects at conferences or to stakeholders, and work collaboratively with other people in the ML ecosystem. Learn more about spaces here.


How Does Gradio and Hugging Face work together?

Hugging Face Spaces is a free hosting option for Gradio demos. Spaces comes with 3 SDK options: Gradio, Streamlit and Static HTML demos. Spaces can be public or private and the workflow is similar to github repos. There are over 2000+ Gradio spaces currently on Hugging Face. Learn more about spaces here: https://huggingface.co/docs/hub/spaces


Event Plan

main components of the event consist of:


Example spaces using Blocks

Screen Shot 2022-05-11 at 3 03 29 PM

To participate in the event

Participants will be building and sharing Gradio demos using the Blocks feature. We will share a list of ideas of spaces that can be created using blocks or participants are free to try out their own ideas. At the end of the event, spaces will be evaluated for creativity and prizes will be given.


potential ideas for creating spaces:


Prizes


Prizes Criteria

Creating a Gradio demo on Hugging Face Spaces

Once a model has been picked from the choices above, you can share a model in a Space using Gradio. Read more about how to add Gradio spaces: https://huggingface.co/blog/gradio-spaces

Steps to add Gradio Spaces to the Gradio Blocks Party org

LeaderBoard for Most Popular Blocks Event Spaces

See Leaderboard: https://huggingface.co/spaces/Gradio-Blocks/Leaderboard