Update app.py
Browse files
app.py
CHANGED
|
@@ -776,8 +776,10 @@ with gr.Blocks(title="Engine Part CV System v5") as demo:
|
|
| 776 |
rst_btn = gr.Button("💥 Reset ALL", variant="stop")
|
| 777 |
rst_st = gr.Textbox(label="Reset Status", lines=2)
|
| 778 |
|
| 779 |
-
ref_btn.click(update_library_preview, [], [lib_txt, lib_roi]
|
| 780 |
-
|
|
|
|
|
|
|
| 781 |
rst_btn.click(reset_all_ui, [], [rst_st, lib_txt, lib_roi])
|
| 782 |
demo.load(update_library_preview, [], [lib_txt, lib_roi])
|
| 783 |
|
|
@@ -786,6 +788,6 @@ if __name__ == "__main__":
|
|
| 786 |
demo.launch(
|
| 787 |
share = False,
|
| 788 |
show_error = True,
|
| 789 |
-
theme = gr.themes.Soft(),
|
| 790 |
css = custom_css,
|
| 791 |
)
|
|
|
|
| 776 |
rst_btn = gr.Button("💥 Reset ALL", variant="stop")
|
| 777 |
rst_st = gr.Textbox(label="Reset Status", lines=2)
|
| 778 |
|
| 779 |
+
ref_btn.click(update_library_preview, [], [lib_txt, lib_roi],
|
| 780 |
+
api_name="list_classes")
|
| 781 |
+
del_btn.click(delete_class_ui, [del_cls], [del_st, lib_txt, lib_roi],
|
| 782 |
+
api_name="delete_class")
|
| 783 |
rst_btn.click(reset_all_ui, [], [rst_st, lib_txt, lib_roi])
|
| 784 |
demo.load(update_library_preview, [], [lib_txt, lib_roi])
|
| 785 |
|
|
|
|
| 788 |
demo.launch(
|
| 789 |
share = False,
|
| 790 |
show_error = True,
|
| 791 |
+
theme = gr.themes.Soft(),
|
| 792 |
css = custom_css,
|
| 793 |
)
|