Update app.py
Browse files
app.py
CHANGED
|
@@ -198,19 +198,25 @@ with gr.Blocks() as demo:
|
|
| 198 |
)
|
| 199 |
gr.Button(value="Clear").click(fn=lambda: None)
|
| 200 |
|
| 201 |
-
|
|
|
|
|
|
|
| 202 |
gr.Markdown("### Contamination Predictions")
|
| 203 |
for out in contamination_outputs:
|
| 204 |
out.render()
|
| 205 |
-
|
| 206 |
-
with gr.Column():
|
| 207 |
gr.Markdown("### Gradient Predictions")
|
| 208 |
for out in gradients_outputs:
|
| 209 |
out.render()
|
| 210 |
|
| 211 |
-
with gr.Column():
|
| 212 |
gr.Markdown("### Cleaning Time Predictions")
|
| 213 |
for out in cleaning_time_outputs:
|
| 214 |
out.render()
|
| 215 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
demo.launch()
|
|
|
|
| 198 |
)
|
| 199 |
gr.Button(value="Clear").click(fn=lambda: None)
|
| 200 |
|
| 201 |
+
# Layout for outputs
|
| 202 |
+
with gr.Row():
|
| 203 |
+
with gr.Column(scale=2):
|
| 204 |
gr.Markdown("### Contamination Predictions")
|
| 205 |
for out in contamination_outputs:
|
| 206 |
out.render()
|
| 207 |
+
|
| 208 |
+
with gr.Column(scale=2):
|
| 209 |
gr.Markdown("### Gradient Predictions")
|
| 210 |
for out in gradients_outputs:
|
| 211 |
out.render()
|
| 212 |
|
| 213 |
+
with gr.Column(scale=3):
|
| 214 |
gr.Markdown("### Cleaning Time Predictions")
|
| 215 |
for out in cleaning_time_outputs:
|
| 216 |
out.render()
|
| 217 |
|
| 218 |
+
with gr.Column(scale=5):
|
| 219 |
+
gr.Markdown("### Contamination Levels Over Time")
|
| 220 |
+
gr.Plot(label="Contamination Levels Over Time").render()
|
| 221 |
+
|
| 222 |
demo.launch()
|