Update app.py
Browse files
app.py
CHANGED
@@ -186,19 +186,15 @@ with gr.Blocks() as demo:
|
|
186 |
gr.Markdown("### Input Parameters")
|
187 |
for inp in inputs:
|
188 |
inp.render()
|
|
|
|
|
|
|
|
|
|
|
189 |
|
190 |
with gr.Column(scale=1):
|
191 |
gr.Image(image_path)
|
192 |
|
193 |
-
# Middle Section: Submit and Clear Buttons
|
194 |
-
with gr.Row():
|
195 |
-
gr.Button(value="Submit", variant="primary").click(
|
196 |
-
fn=predict_and_plot,
|
197 |
-
inputs=inputs,
|
198 |
-
outputs= contamination_outputs + gradients_outputs + cleaning_time_outputs
|
199 |
-
)
|
200 |
-
gr.Button(value="Clear").click(fn=lambda: None)
|
201 |
-
|
202 |
# Bottom Section: Outputs (Three columns) and Plot Below
|
203 |
with gr.Row():
|
204 |
with gr.Column(scale=2):
|
|
|
186 |
gr.Markdown("### Input Parameters")
|
187 |
for inp in inputs:
|
188 |
inp.render()
|
189 |
+
gr.Button(value="Submit", variant="primary").click(
|
190 |
+
fn=predict_and_plot,
|
191 |
+
inputs=inputs,
|
192 |
+
outputs= contamination_outputs + gradients_outputs + cleaning_time_outputs)
|
193 |
+
gr.Button(value="Clear").click(fn=lambda: None)
|
194 |
|
195 |
with gr.Column(scale=1):
|
196 |
gr.Image(image_path)
|
197 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
# Bottom Section: Outputs (Three columns) and Plot Below
|
199 |
with gr.Row():
|
200 |
with gr.Column(scale=2):
|