Update app.py
Browse files
app.py
CHANGED
@@ -132,7 +132,7 @@ def predict_and_plot(velocity, temperature, precipitation, humidity):
|
|
132 |
|
133 |
# Flatten the results into a single list of 19 outputs (1 plot + 6 contamination + 6 gradients + 6 cleaning times)
|
134 |
plot_output = fig
|
135 |
-
contamination_output = [f"{val * 100:.2f}%
|
136 |
gradients_output = [f"{val:.4f}" for val in gradients[0]]
|
137 |
cleaning_time_output = [f"{val:.2f}" for val in cleaning_times]
|
138 |
|
@@ -196,7 +196,7 @@ with gr.Blocks(css=".column-container {height: 100%; display: flex; flex-directi
|
|
196 |
# Bottom Section: Outputs (Three columns)
|
197 |
with gr.Row():
|
198 |
with gr.Column(scale=2):
|
199 |
-
gr.Markdown("### Contamination Predictions")
|
200 |
for out in contamination_outputs:
|
201 |
out.render()
|
202 |
|
|
|
132 |
|
133 |
# Flatten the results into a single list of 19 outputs (1 plot + 6 contamination + 6 gradients + 6 cleaning times)
|
134 |
plot_output = fig
|
135 |
+
contamination_output = [f"{val * 100:.2f}%" for val in contamination_levels[0]]
|
136 |
gradients_output = [f"{val:.4f}" for val in gradients[0]]
|
137 |
cleaning_time_output = [f"{val:.2f}" for val in cleaning_times]
|
138 |
|
|
|
196 |
# Bottom Section: Outputs (Three columns)
|
197 |
with gr.Row():
|
198 |
with gr.Column(scale=2):
|
199 |
+
gr.Markdown("### Contamination Predictions ± 7.1%")
|
200 |
for out in contamination_outputs:
|
201 |
out.render()
|
202 |
|