selva1909 commited on
Commit
df5a253
·
verified ·
1 Parent(s): a9bf4b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- return (*rf_2d(n_points, noise, n_estimators, max_depth, show_trees))
 
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
- return (*rf_classification(n_points, noise, n_estimators, max_depth))
 
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