Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,10 +116,10 @@ with gr.Blocks() as demo:
|
|
| 116 |
gr.Markdown("**BIS noise**")
|
| 117 |
input_noise = gr.inputs.Checkbox(label="Add Gaussian noise")
|
| 118 |
with gr.Accordion("noise range"):
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
gr.Markdown("**Infusion noise**")
|
| 124 |
with gr.Blocks():
|
| 125 |
output_noise = gr.inputs.Checkbox(label="Add Pulsive noise")
|
|
@@ -134,5 +134,5 @@ with gr.Blocks() as demo:
|
|
| 134 |
with gr.Column(scale=5):
|
| 135 |
plot1 = gr.Plot(label="BIS evolution")
|
| 136 |
plot2 = gr.Plot(label="Infusion evolution")
|
| 137 |
-
button.click(simulation, inputs=[input_noise, output_noise,
|
| 138 |
demo.launch()
|
|
|
|
| 116 |
gr.Markdown("**BIS noise**")
|
| 117 |
input_noise = gr.inputs.Checkbox(label="Add Gaussian noise")
|
| 118 |
with gr.Accordion("noise range"):
|
| 119 |
+
min_gaussian = gr.inputs.Slider(minimum=0, maximum=20, step=1, default=5, label="noise min")
|
| 120 |
+
max_gaussian = gr.inputs.Slider(minimum=0, maximum=20, step=1, default=10, label="noise max")
|
| 121 |
+
std_gaussian = gr.inputs.Slider(minimum=0, maximum=10, step=1, default=2, label="noise standard deviation")
|
| 122 |
+
mean_gaussian = gr.inputs.Slider(minimum=0, maximum=20, step=1, default=7, label="noise mean")
|
| 123 |
gr.Markdown("**Infusion noise**")
|
| 124 |
with gr.Blocks():
|
| 125 |
output_noise = gr.inputs.Checkbox(label="Add Pulsive noise")
|
|
|
|
| 134 |
with gr.Column(scale=5):
|
| 135 |
plot1 = gr.Plot(label="BIS evolution")
|
| 136 |
plot2 = gr.Plot(label="Infusion evolution")
|
| 137 |
+
button.click(simulation, inputs=[input_noise, output_noise, min_gaussian, max_gaussian, std_gaussian, mean_gaussian, min_slider, max_slider, kp_slider, ki_slider], outputs=[plot1, plot2])
|
| 138 |
demo.launch()
|