Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -162,12 +162,14 @@ with gr.Blocks() as demo:
|
|
| 162 |
|
| 163 |
def run(mode, n_points, noise, n_estimators, max_depth, show_trees, rotate):
|
| 164 |
if mode == "2D Regression":
|
| 165 |
-
|
|
|
|
| 166 |
elif mode == "3D Regression":
|
| 167 |
frames, text = rf_3d(n_points, noise, n_estimators, max_depth, rotate)
|
| 168 |
return frames[0], None, text
|
| 169 |
else:
|
| 170 |
-
|
|
|
|
| 171 |
|
| 172 |
inputs = [mode, n_points, noise, n_estimators, max_depth, show_trees, rotate]
|
| 173 |
|
|
|
|
| 162 |
|
| 163 |
def run(mode, n_points, noise, n_estimators, max_depth, show_trees, rotate):
|
| 164 |
if mode == "2D Regression":
|
| 165 |
+
fig1, fig2, text = rf_2d(n_points, noise, n_estimators, max_depth, show_trees)
|
| 166 |
+
return fig1, fig2, text
|
| 167 |
elif mode == "3D Regression":
|
| 168 |
frames, text = rf_3d(n_points, noise, n_estimators, max_depth, rotate)
|
| 169 |
return frames[0], None, text
|
| 170 |
else:
|
| 171 |
+
fig1, fig2, text = rf_classification(n_points, noise, n_estimators, max_depth)
|
| 172 |
+
return fig1, fig2, text
|
| 173 |
|
| 174 |
inputs = [mode, n_points, noise, n_estimators, max_depth, show_trees, rotate]
|
| 175 |
|