SerdarHelli commited on
Commit
9448c8e
1 Parent(s): 4522282

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -6,8 +6,13 @@ import numpy as np
6
  import cv2
7
  from huggingface_hub import from_pretrained_keras
8
 
9
- model=from_pretrained_keras("SerdarHelli/Segmentation-of-Teeth-in-Panoramic-X-ray-Image-Using-U-Net")
10
 
 
 
 
 
 
 
11
  st.header("Segmentation of Teeth in Panoramic X-ray Image Using UNet")
12
 
13
  examples=["107.png","108.png","109.png"]
 
6
  import cv2
7
  from huggingface_hub import from_pretrained_keras
8
 
 
9
 
10
+ try:
11
+ model=from_pretrained_keras("SerdarHelli/Segmentation-of-Teeth-in-Panoramic-X-ray-Image-Using-U-Net")
12
+ except:
13
+ model=tf.keras.models.load_model("dental_xray_seg.h5")
14
+ pass
15
+
16
  st.header("Segmentation of Teeth in Panoramic X-ray Image Using UNet")
17
 
18
  examples=["107.png","108.png","109.png"]