Update app.py
Browse files
app.py
CHANGED
|
@@ -611,7 +611,7 @@ with demo:
|
|
| 611 |
)
|
| 612 |
|
| 613 |
get_status_api = demo.load(
|
| 614 |
-
fn=
|
| 615 |
inputs=[],
|
| 616 |
outputs=[
|
| 617 |
gr.Textbox(label="Status"),
|
|
@@ -624,6 +624,13 @@ with demo:
|
|
| 624 |
api_name="get_status",
|
| 625 |
)
|
| 626 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 627 |
if __name__ == "__main__":
|
| 628 |
logger.info("Starting Bambu A1 Mini Print Control application")
|
| 629 |
|
|
|
|
| 611 |
)
|
| 612 |
|
| 613 |
get_status_api = demo.load(
|
| 614 |
+
fn=update_print_status,
|
| 615 |
inputs=[],
|
| 616 |
outputs=[
|
| 617 |
gr.Textbox(label="Status"),
|
|
|
|
| 624 |
api_name="get_status",
|
| 625 |
)
|
| 626 |
|
| 627 |
+
health_check_api = demo.load(
|
| 628 |
+
fn=health_check,
|
| 629 |
+
inputs=[],
|
| 630 |
+
outputs=gr.JSON(),
|
| 631 |
+
api_name="health_check",
|
| 632 |
+
)
|
| 633 |
+
|
| 634 |
if __name__ == "__main__":
|
| 635 |
logger.info("Starting Bambu A1 Mini Print Control application")
|
| 636 |
|