Skip to content
Snippets Groups Projects

New Layered Surface Segmentation

7 files
+ 78
13
Compare changes
  • Side-by-side
  • Inline

Files

+ 8
3
@@ -170,7 +170,9 @@ class Interface:
fn=operations.save_mask,
inputs=output_masks,
outputs=[save_output, save_output],
)
).success(
fn=lambda: os.remove('mask.tif')
) # Remove mask file from working directory immediately after sending it to /tmp/gradio
# Update 'Add mask' button interactivit according to the current count
counts.change(
@@ -353,7 +355,10 @@ class Operations:
] + output_masks_update
def run_interface(host = "0.0.0.0"):
gradio_interface = Interface().create_interface()
internal_tools.run_gradio_app(gradio_interface,host)
if __name__ == "__main__":
# Creates interface
gradio_interface = Interface().create_interface()
internal_tools.run_gradio_app(gradio_interface)
run_interface()
\ No newline at end of file
Loading