Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -232,9 +232,11 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
| 232 |
]
|
| 233 |
control_inputs_with_flag = [is_reset] + control_inputs
|
| 234 |
|
| 235 |
-
for control in [rotate_deg, move_forward, vertical_tilt
|
| 236 |
control.release(fn=maybe_infer, inputs=control_inputs_with_flag, outputs=outputs)
|
| 237 |
-
|
|
|
|
|
|
|
| 238 |
run_event.then(lambda img, *_: img, inputs=[result], outputs=[prev_output])
|
| 239 |
|
| 240 |
demo.launch()
|
|
|
|
| 232 |
]
|
| 233 |
control_inputs_with_flag = [is_reset] + control_inputs
|
| 234 |
|
| 235 |
+
for control in [rotate_deg, move_forward, vertical_tilt]:
|
| 236 |
control.release(fn=maybe_infer, inputs=control_inputs_with_flag, outputs=outputs)
|
| 237 |
+
|
| 238 |
+
wideangle.change(fn=maybe_infer, inputs=control_inputs_with_flag, outputs=outputs)
|
| 239 |
+
|
| 240 |
run_event.then(lambda img, *_: img, inputs=[result], outputs=[prev_output])
|
| 241 |
|
| 242 |
demo.launch()
|