File size: 455 Bytes
b72a232 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
from neukit.gui import WebUI
def main():
print("Launching demo...")
# cwd = "/Users/andreped/workspace/livermask/" # local testing -> macOS
cwd = "/home/user/app/" # production -> docker
model_name = "model.h5" # assumed to lie in `cwd` directory
class_name = "parenchyma"
# initialize and run app
app = WebUI(model_name=model_name, class_name=class_name, cwd=cwd)
app.run()
if __name__ == "__main__":
main()
|