Skip to content

🙋 Community Feedback on Blocks #690

@abidlabs

Description

@abidlabs

This issue is a place for the community to try Blocks 🧱 and give feedback on its development

What is Blocks?

Blocks allows you to build web-based demos in a flexible way using the gradio library. Blocks is a more low-level and flexible alternative to the core Interface class. Specifically, Blocks support:

  • grouping together related demos using Tabs
  • flexible positioning of components using Columns, Rows, etc. and the ability to add explanatory Markdown or Text at any point
  • flexible data flows (e.g. any number of input and output components can be displayed on screen, and functions can define data flow between any subset of inputs and outputs)
  • flexible event triggers (e.g. button clicks, element changes, etc.)

Here's an example Block:

Recording 2022-02-22 at 11 54 03

If you've used Gradio before, you'll find that Blocks still allows you to build web apps:

  • entirely in Python
  • using the standard Python interpreter, which means it will run in Jupyter notebooks, colab notebooks, or any Python IDE

Getting Started with Blocks

  • Blocks is just released with Gradio 3.0. Check here for the announcement.
  • To use it, please install the latest release of Gradio: pip install gradio
  • TODO: Add [Blocks Introduction Guide Link]

You can also use Blocks in Spaces! See an example here.


Giving feedback: In the comments below, we'd love to hear from you:

  • Did Blocks allow you to build something cool? Share a screenshot or a link to a Blocks Demo!
  • Does Blocks not support your use case? Let us know too so that we can support it!
  • Did you find anything confusing or hard within the syntax or usage of Blocks? Let's improve it together!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions