Update app.py
Browse files
app.py
CHANGED
|
@@ -396,7 +396,7 @@ def reset_propagation(predictor, stored_inference_state):
|
|
| 396 |
|
| 397 |
predictor.reset_state(stored_inference_state)
|
| 398 |
print(f"RESET State: {stored_inference_state} ")
|
| 399 |
-
return stored_inference_state
|
| 400 |
|
| 401 |
with gr.Blocks() as demo:
|
| 402 |
first_frame_path = gr.State()
|
|
@@ -541,7 +541,7 @@ with gr.Blocks() as demo:
|
|
| 541 |
reset_prpgt_brn.click(
|
| 542 |
fn = reset_propagation,
|
| 543 |
inputs = [loaded_predictor, stored_inference_state],
|
| 544 |
-
outputs = [stored_inference_state],
|
| 545 |
queue=False
|
| 546 |
)
|
| 547 |
|
|
|
|
| 396 |
|
| 397 |
predictor.reset_state(stored_inference_state)
|
| 398 |
print(f"RESET State: {stored_inference_state} ")
|
| 399 |
+
return gr.update(value=None, visible=False), stored_inference_state, None
|
| 400 |
|
| 401 |
with gr.Blocks() as demo:
|
| 402 |
first_frame_path = gr.State()
|
|
|
|
| 541 |
reset_prpgt_brn.click(
|
| 542 |
fn = reset_propagation,
|
| 543 |
inputs = [loaded_predictor, stored_inference_state],
|
| 544 |
+
outputs = [output_propagated, stored_inference_state, output_result],
|
| 545 |
queue=False
|
| 546 |
)
|
| 547 |
|