Update src/streamlit_app.py
Browse files- src/streamlit_app.py +0 -12
src/streamlit_app.py
CHANGED
|
@@ -3,7 +3,6 @@ import numpy as np
|
|
| 3 |
import tensorflow as tf
|
| 4 |
from PIL import Image
|
| 5 |
import os
|
| 6 |
-
import matplotlib.pyplot as plt
|
| 7 |
|
| 8 |
# 👇 HIER PLAATSEN (boven load_model)
|
| 9 |
MODEL_PATH = "/app/src/facial_keypoints_resnet.h5"
|
|
@@ -45,14 +44,3 @@ if uploaded_file is not None:
|
|
| 45 |
|
| 46 |
st.subheader("Predicted Keypoints (x, y)")
|
| 47 |
st.write(keypoints)
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
fig, ax = plt.subplots()
|
| 51 |
-
ax.imshow(image, cmap='gray')
|
| 52 |
-
|
| 53 |
-
# Let op: x = kolom, y = rij
|
| 54 |
-
ax.scatter(keypoints[:, 0], keypoints[:, 1], c='red', s=20)
|
| 55 |
-
|
| 56 |
-
ax.axis("off")
|
| 57 |
-
st.pyplot(fig)
|
| 58 |
-
|
|
|
|
| 3 |
import tensorflow as tf
|
| 4 |
from PIL import Image
|
| 5 |
import os
|
|
|
|
| 6 |
|
| 7 |
# 👇 HIER PLAATSEN (boven load_model)
|
| 8 |
MODEL_PATH = "/app/src/facial_keypoints_resnet.h5"
|
|
|
|
| 44 |
|
| 45 |
st.subheader("Predicted Keypoints (x, y)")
|
| 46 |
st.write(keypoints)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|