Spaces:
Sleeping
Sleeping
Fix gradio issues
Browse files- gui/app.py +9 -6
gui/app.py
CHANGED
|
@@ -69,26 +69,29 @@ def main():
|
|
| 69 |
fn=greet,
|
| 70 |
description="A demo of PySR",
|
| 71 |
inputs=[
|
| 72 |
-
gr.File(label="Upload a CSV File"),
|
| 73 |
-
gr.Textbox(label="Column to Predict", placeholder="y"),
|
| 74 |
-
gr.Slider(
|
| 75 |
minimum=1,
|
| 76 |
maximum=1000,
|
| 77 |
value=40,
|
| 78 |
label="Number of iterations",
|
| 79 |
),
|
| 80 |
-
gr.CheckboxGroup(
|
| 81 |
choices=["+", "-", "*", "/", "^"],
|
| 82 |
label="Binary Operators",
|
| 83 |
value=["+", "-", "*", "/"],
|
| 84 |
),
|
| 85 |
-
gr.CheckboxGroup(
|
| 86 |
choices=["sin", "cos", "exp", "log"],
|
| 87 |
label="Unary Operators",
|
| 88 |
value=[],
|
| 89 |
),
|
| 90 |
],
|
| 91 |
-
outputs=[
|
|
|
|
|
|
|
|
|
|
| 92 |
)
|
| 93 |
# Add file to the demo:
|
| 94 |
|
|
|
|
| 69 |
fn=greet,
|
| 70 |
description="A demo of PySR",
|
| 71 |
inputs=[
|
| 72 |
+
gr.inputs.File(label="Upload a CSV File"),
|
| 73 |
+
gr.inputs.Textbox(label="Column to Predict", placeholder="y"),
|
| 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:
|
| 97 |
|