Skip to content

Gradio dash fe#807

Merged
omerXfaruq merged 30 commits into
Blocks-Componentsfrom
gradio-dash-fe
Mar 18, 2022
Merged

Gradio dash fe#807
omerXfaruq merged 30 commits into
Blocks-Componentsfrom
gradio-dash-fe

Conversation

@pngwn
Copy link
Copy Markdown
Member

@pngwn pngwn commented Mar 11, 2022

  • all components are just 'components', static/ dynamic, input/output doesn't matter they can all be input/output techincally, it juist depends what functionality the component has. If it emits an event then it can be a trigger for a predict fn, if it accepts a value then it can be an output. or of course it can be both.
    static/ dynamic is automatically detected based on whether or not the component is used as an input (heuristic might need tweaking)
  • Render code is much simplified, we simply recursively walk the tree rendering components, layout components like tabs are treated exactly like any other so we don't need to special case certain types of components. We may need to think about how we design our component with this in mind.
  • We can attach arbitrary events to arbitrary components, we do not need to limit ourselves to a small set of events across all components, we can decide component by component. This has the benefit of supporting custom component more comprehensively than before. Users could create custom events from their own components that they could then use as event triggers, etc.
  • Components are now loaded on demand based on what is passed down in the config. This should speed things up considerably but also allow us to freely add new components without worrying too much

Closes #636. Closes #723. Closes #736. Closes #639. Closes #786. Closes #790.

- solve import errors
- add label parameter to Static components
@pngwn pngwn marked this pull request as draft March 17, 2022 09:47
@omerXfaruq omerXfaruq merged commit d396c2c into Blocks-Components Mar 18, 2022
@omerXfaruq omerXfaruq deleted the gradio-dash-fe branch March 18, 2022 06:10
@omerXfaruq omerXfaruq restored the gradio-dash-fe branch March 18, 2022 06:11
@omerXfaruq
Copy link
Copy Markdown
Contributor

omerXfaruq commented Mar 18, 2022

Just merged this branch on Blocks-Components in the terminal to get updates from here. But it seems like the PR merged as well, restored the branch afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants