huabdul commited on
Commit
f7de449
·
1 Parent(s): e22ca40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -106,11 +106,11 @@ with gr.Blocks(analytics_enabled=False) as demo:
106
  gr.Markdown(info)
107
  dd = gr.Dropdown(selections, value=selections[0], interactive=True, label="Input features")
108
  with gr.Row():
109
- with gr.Column():
110
- slider_max_depth = gr.Slider(1, 50, value=4, step=1, label='max_depth (for DecisionTreeClassifier)')
111
- slider_n_neighbors = gr.Slider(1, 20, value=7, step=1, label='n_neighbors (for KNeighborsClassifier)')
112
- slider_gamma = gr.Slider(0, 10, value=0.1, step=0.1, label='gamma (for SVC)')
113
- with gr.Column():
114
  slider_w1 = gr.Slider(0, 10, value=2, step=0.1, label='DecisionTreeClassifier weight')
115
  slider_w2 = gr.Slider(0, 10, value=1, step=0.1, label='KNeighborsClassifier weight')
116
  slider_w3 = gr.Slider(0, 10, value=2, step=0.1, label='SVC weight')
 
106
  gr.Markdown(info)
107
  dd = gr.Dropdown(selections, value=selections[0], interactive=True, label="Input features")
108
  with gr.Row():
109
+ with gr.Column(min_width=100):
110
+ slider_max_depth = gr.Slider(1, 50, value=4, step=1, label='max_depth (DecisionTree)')
111
+ slider_n_neighbors = gr.Slider(1, 20, value=7, step=1, label='n_neighbors (KNN)')
112
+ slider_gamma = gr.Slider(0, 10, value=0.1, step=0.1, label='gamma (SVC)')
113
+ with gr.Column(min_width=100):
114
  slider_w1 = gr.Slider(0, 10, value=2, step=0.1, label='DecisionTreeClassifier weight')
115
  slider_w2 = gr.Slider(0, 10, value=1, step=0.1, label='KNeighborsClassifier weight')
116
  slider_w3 = gr.Slider(0, 10, value=2, step=0.1, label='SVC weight')