Spaces:
Sleeping
Sleeping
bracken576 commited on
Commit ·
a702025
1
Parent(s): d9028ec
updated streamlit and requirements
Browse files- streamlit.py +1 -2
streamlit.py
CHANGED
|
@@ -8,6 +8,7 @@ from keras.preprocessing import image
|
|
| 8 |
#docker build -t streamlit
|
| 9 |
# docker compose up
|
| 10 |
|
|
|
|
| 11 |
st.markdown("## Bone Fracture Recognition with TensorFlow")
|
| 12 |
|
| 13 |
|
|
@@ -20,8 +21,6 @@ image_file = st.file_uploader("Upload X-Ray Image", type=['png', 'jpg'])
|
|
| 20 |
if image_file:
|
| 21 |
st.image(image_file, caption=None, width=None, use_column_width=None, clamp=False, channels="RGB", output_format="auto")
|
| 22 |
|
| 23 |
-
|
| 24 |
-
model = tf.keras.models.load_model("cnnBoneFracRec.h5")
|
| 25 |
target_names = ['Non-Fractured', 'Fractured']
|
| 26 |
temp_img = image.load_img(image_file, target_size=(100, 100))
|
| 27 |
x = image.img_to_array(temp_img)
|
|
|
|
| 8 |
#docker build -t streamlit
|
| 9 |
# docker compose up
|
| 10 |
|
| 11 |
+
model = tf.keras.models.load_model("cnnBoneFracRec.h5")
|
| 12 |
st.markdown("## Bone Fracture Recognition with TensorFlow")
|
| 13 |
|
| 14 |
|
|
|
|
| 21 |
if image_file:
|
| 22 |
st.image(image_file, caption=None, width=None, use_column_width=None, clamp=False, channels="RGB", output_format="auto")
|
| 23 |
|
|
|
|
|
|
|
| 24 |
target_names = ['Non-Fractured', 'Fractured']
|
| 25 |
temp_img = image.load_img(image_file, target_size=(100, 100))
|
| 26 |
x = image.img_to_array(temp_img)
|