mayayank commited on
Commit
b46a24e
·
1 Parent(s): e6fefa5

start app

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from tensorflow.keras.models import Model, load_model
2
+
3
+ from pathlib import Path
4
+
5
+ current_directory_path = Path(__file__).parent.resolve()
6
+ model_path = current_directory_path / "cce_dice_loss_pretrained.h5"
7
+
8
+ label_map_object = {0: 'LARGE BOWEL', 1: 'SMALL BOWEL', 2: 'STOMACH', 3: 'BACKGROUND'}
9
+
10
+ # Load the model
11
+ model = load_model(model_path)