Interfaces from Blocks#849
Conversation
|
You might want to have destination branch as Blocks-Components-v2 to show less diff, but let's merge it to Blocks-Dev when we are going to merge. It will have cleaner PR change history that way. |
|
Btw @aliabid94 I tried testing this with a simple gr.Interface(lambda x:x, gr.components.Textbox(), gr.components.Textbox()).launch()The clear button works, but the submit button has no effect (and throws no error except printing "boo" in the console): |
|
weird I'll take a look |
|
Ah shoot I pushed my changes to the wrong branch. These commits were supposed to be part of this branch: #848 Edit: fixed |
a209b1c to
28ed62f
Compare
|
Ok yeah it looks like the other components are working fine (including |
|
In that case, everything else LGTM. Should we go ahead and merge this, so that we can get work off of this for #848? We can handle the textbox issue (and other issues that we find) in separate, smaller PRs |
* Blocks-Components-v2 - default -> default_value refactoring * Blocks-Components-v2 - refactor output types into output_type and make them auto * Blocks-Backend-Events - all events are implemented * Blocks-Backend-Events - refactor fn: str -> Callable * Blocks-Backend-Events - add change event to TabItem * Blocks Backend Components - Remove KeyValues from components * Blocks-Backend-Components-v2 - Resolve Components imports in inputs and outputs * Blocks-Backend-Components-v2 - fix default parameter usage in demos * Blocks-Backend-Components-v2 - fix default parameter usage in demos * Blocks-Backend-Components-v2 - fix default parameter usage in demos * Blocks-Backend-Components-v2 - docstring updates * revert demos * Blocks-Backend-Components-v2 - tweaks * Blocks-Backend-Components-v2 - add change event to Tabs * Interfaces from Blocks (#849) Build interfaces from blocks Co-authored-by: Ali Abid <aliabid94@gmail.com> Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> Co-authored-by: Ali Abid <aliabid94@gmail.com>

Making Interfaces from Blocks.
Interface is implemented as a Blocks config. Frontend will use blocks only. Most Interface features are implemented, try with demo/calculator.py for example.