Adjust sliders' limits
Browse files
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",
|
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",
|
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",
|
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()
|