cmpatino commited on
Commit
50d8155
1 Parent(s): 9d640ed

Adjust sliders' limits

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -121,7 +121,7 @@ with gr.Blocks() as demo:
121
  value="Logistic Regression",
122
  )
123
  model_1_weight = gr.Slider(
124
- value=1, label="Model 1 Weight", max=10, step=1
125
  )
126
  with gr.Row():
127
  model_2 = gr.Dropdown(
@@ -134,7 +134,7 @@ with gr.Blocks() as demo:
134
  value="Random Forest",
135
  )
136
  model_2_weight = gr.Slider(
137
- value=1, label="Model 2 Weight", max=10, step=1
138
  )
139
  with gr.Row():
140
  model_3 = gr.Dropdown(
@@ -148,7 +148,7 @@ with gr.Blocks() as demo:
148
  )
149
 
150
  model_3_weight = gr.Slider(
151
- value=5, label="Model 3 Weight", max=10, step=1
152
  )
153
  with gr.Column(scale=4):
154
  proba_plots = gr.Plot()
 
121
  value="Logistic Regression",
122
  )
123
  model_1_weight = gr.Slider(
124
+ value=1, label="Model 1 Weight", minimum=0, maximum=10, step=1
125
  )
126
  with gr.Row():
127
  model_2 = gr.Dropdown(
 
134
  value="Random Forest",
135
  )
136
  model_2_weight = gr.Slider(
137
+ value=1, label="Model 2 Weight", minimum=0, maximum=10, step=1
138
  )
139
  with gr.Row():
140
  model_3 = gr.Dropdown(
 
148
  )
149
 
150
  model_3_weight = gr.Slider(
151
+ value=5, label="Model 3 Weight", minimum=0, maximum=10, step=1
152
  )
153
  with gr.Column(scale=4):
154
  proba_plots = gr.Plot()