BeyzaTopbas commited on
Commit
1cd3e97
·
verified ·
1 Parent(s): 134dced

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -7
src/streamlit_app.py CHANGED
@@ -12,13 +12,6 @@ st.set_page_config(
12
  layout="centered"
13
  )
14
 
15
-
16
- st.title("Facial Keypoints Detection")
17
- st.write("Upload a face image and the model will predict facial keypoints.")
18
-
19
- # 🔥 GEEN src/ HIER
20
- MODEL_PATH = "facial_keypoints_resnet.h5"
21
-
22
  @st.cache_resource
23
  def load_model():
24
  return tf.keras.models.load_model(
@@ -26,6 +19,10 @@ def load_model():
26
  safe_mode=False
27
  )
28
 
 
 
 
 
29
  model = load_model()
30
 
31
  uploaded_file = st.file_uploader(
 
12
  layout="centered"
13
  )
14
 
 
 
 
 
 
 
 
15
  @st.cache_resource
16
  def load_model():
17
  return tf.keras.models.load_model(
 
19
  safe_mode=False
20
  )
21
 
22
+ st.title("Facial Keypoints Detection")
23
+ st.write("Upload a face image and the model will predict facial keypoints.")
24
+
25
+
26
  model = load_model()
27
 
28
  uploaded_file = st.file_uploader(