Spaces:
Build error
Build error
neverix commited on
Commit ·
bf98fb4
1
Parent(s): bfc2484
Remove tabbed interface
Browse files23 unmodified lines2425262728293023 unmodified linesdef main():gr.TabbedInterface(inputs=[(gr.inputs.Number(label=k, default=v0) if t in (float, int) elsegr.inputs.Checkbox(label=k, default=v0) if t == bool else gr.inputs.Textbox(label=k, default=v0) if t == strelse gr.inputs.Dropdown(label=k, default=v0, choices=t) if isinstance(t, (tuple, list)) else 1/0)23 unmodified lines2425262728293023 unmodified linesdef main():gr.Interface(inputs=[(gr.inputs.Number(label=k, default=v0) if t in (float, int) elsegr.inputs.Checkbox(label=k, default=v0) if t == bool else gr.inputs.Textbox(label=k, default=v0) if t == strelse gr.inputs.Dropdown(label=k, default=v0, choices=t) if isinstance(t, (tuple, list)) else 1/0)
app.py+1-1