Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
·
33354da
1
Parent(s):
c63a653
Fix use of API
Browse files
app.py
CHANGED
@@ -74,23 +74,23 @@ def main():
|
|
74 |
gr.inputs.Slider(
|
75 |
minimum=1,
|
76 |
maximum=1000,
|
77 |
-
|
78 |
label="Number of iterations",
|
79 |
),
|
80 |
gr.inputs.CheckboxGroup(
|
81 |
choices=["+", "-", "*", "/", "^"],
|
82 |
label="Binary Operators",
|
83 |
-
|
84 |
),
|
85 |
gr.inputs.CheckboxGroup(
|
86 |
choices=["sin", "cos", "exp", "log"],
|
87 |
label="Unary Operators",
|
88 |
-
|
89 |
),
|
90 |
],
|
91 |
outputs=[
|
92 |
-
|
93 |
-
gr.outputs.Textbox(label="Error Log")
|
94 |
],
|
95 |
)
|
96 |
# Add file to the demo:
|
|
|
74 |
gr.inputs.Slider(
|
75 |
minimum=1,
|
76 |
maximum=1000,
|
77 |
+
default=40,
|
78 |
label="Number of iterations",
|
79 |
),
|
80 |
gr.inputs.CheckboxGroup(
|
81 |
choices=["+", "-", "*", "/", "^"],
|
82 |
label="Binary Operators",
|
83 |
+
default=["+", "-", "*", "/"],
|
84 |
),
|
85 |
gr.inputs.CheckboxGroup(
|
86 |
choices=["sin", "cos", "exp", "log"],
|
87 |
label="Unary Operators",
|
88 |
+
default=[],
|
89 |
),
|
90 |
],
|
91 |
outputs=[
|
92 |
+
"dataframe",
|
93 |
+
gr.outputs.Textbox(label="Error Log"),
|
94 |
],
|
95 |
)
|
96 |
# Add file to the demo:
|