SerdarHelli commited on
Commit
04b7787
·
1 Parent(s): 76c6447

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -8,17 +8,13 @@ from PIL import Image
8
  import numpy as np
9
  import cv2
10
  from Utils import *
11
- import tensorflow as tf
12
- from huggingface_hub import hf_hub_download
13
 
14
 
 
15
 
16
- file_path = hf_hub_download("SerdarHelli/Knee-View-Merchant-Landmark-Detection","keras",
17
- use_auth_token=os.environ.get("TOKEN_FROM_SECRET"))
18
 
19
 
20
- model=tf.keras.load_model(file_path)
21
-
22
  st.subheader("Upload Merchant Knee View")
23
  image_file = st.file_uploader("Upload Images", type=["dcm"])
24
 
 
8
  import numpy as np
9
  import cv2
10
  from Utils import *
 
 
11
 
12
 
13
+ from huggingface_hub import from_pretrained_keras
14
 
15
+ model = from_pretrained_keras("SerdarHelli/Knee-View-Merchant-Landmark-Detection",use_auth_token=os.environ.get("TOKEN_FROM_SECRET"))
 
16
 
17
 
 
 
18
  st.subheader("Upload Merchant Knee View")
19
  image_file = st.file_uploader("Upload Images", type=["dcm"])
20