Spaces:
Build error
Build error
neverix
commited on
Commit
•
bf98fb4
1
Parent(s):
bfc2484
Remove tabbed interface
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def generate(*args):
|
|
24 |
|
25 |
|
26 |
def main():
|
27 |
-
gr.
|
28 |
(gr.inputs.Number(label=k, default=v0) if t in (float, int) else
|
29 |
gr.inputs.Checkbox(label=k, default=v0) if t == bool else gr.inputs.Textbox(label=k, default=v0) if t == str
|
30 |
else gr.inputs.Dropdown(label=k, default=v0, choices=t) if isinstance(t, (tuple, list)) else 1/0)
|
|
|
24 |
|
25 |
|
26 |
def main():
|
27 |
+
gr.Interface(inputs=[
|
28 |
(gr.inputs.Number(label=k, default=v0) if t in (float, int) else
|
29 |
gr.inputs.Checkbox(label=k, default=v0) if t == bool else gr.inputs.Textbox(label=k, default=v0) if t == str
|
30 |
else gr.inputs.Dropdown(label=k, default=v0, choices=t) if isinstance(t, (tuple, list)) else 1/0)
|