Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,6 +81,9 @@ def server(input: Inputs, output: Outputs, session: Session):
|
|
| 81 |
current_mask = prediction.get_sidewalk_prediction(image, model, processor, device)
|
| 82 |
logger.info("Inference completed.")
|
| 83 |
|
|
|
|
|
|
|
|
|
|
| 84 |
@output
|
| 85 |
@render.plot
|
| 86 |
def plot_image_and_mask():
|
|
|
|
| 81 |
current_mask = prediction.get_sidewalk_prediction(image, model, processor, device)
|
| 82 |
logger.info("Inference completed.")
|
| 83 |
|
| 84 |
+
# Trigger the plot update
|
| 85 |
+
output.plot_image_and_mask.invalidate()
|
| 86 |
+
|
| 87 |
@output
|
| 88 |
@render.plot
|
| 89 |
def plot_image_and_mask():
|