MilesCranmer commited on
Commit
33354da
·
1 Parent(s): c63a653

Fix use of API

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -74,23 +74,23 @@ def main():
74
  gr.inputs.Slider(
75
  minimum=1,
76
  maximum=1000,
77
- value=40,
78
  label="Number of iterations",
79
  ),
80
  gr.inputs.CheckboxGroup(
81
  choices=["+", "-", "*", "/", "^"],
82
  label="Binary Operators",
83
- value=["+", "-", "*", "/"],
84
  ),
85
  gr.inputs.CheckboxGroup(
86
  choices=["sin", "cos", "exp", "log"],
87
  label="Unary Operators",
88
- value=[],
89
  ),
90
  ],
91
  outputs=[
92
- gr.outputs.DataFrame(label="Equations"),
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: