Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,16 +30,19 @@ def add_dpoc_entry(title, description):
|
|
| 30 |
st.session_state.dpoc_list.append(entry)
|
| 31 |
# Defect categories
|
| 32 |
class_labels = [
|
|
|
|
| 33 |
"Floor Cracks",
|
| 34 |
"Floor Debonding",
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
-
"
|
|
|
|
|
|
|
| 38 |
]
|
| 39 |
|
| 40 |
@st.cache_resource
|
| 41 |
def load_trained_model():
|
| 42 |
-
return load_model('
|
| 43 |
|
| 44 |
def compress_image(image_bytes, max_size_kb=500):
|
| 45 |
img = Image.open(io.BytesIO(image_bytes))
|
|
|
|
| 30 |
st.session_state.dpoc_list.append(entry)
|
| 31 |
# Defect categories
|
| 32 |
class_labels = [
|
| 33 |
+
"Construction Joint",
|
| 34 |
"Floor Cracks",
|
| 35 |
"Floor Debonding",
|
| 36 |
+
"Floor peeling",
|
| 37 |
+
"Floor oil",
|
| 38 |
+
"Flooring Bubble",
|
| 39 |
+
"Pot holes",
|
| 40 |
+
"Shade fading"
|
| 41 |
]
|
| 42 |
|
| 43 |
@st.cache_resource
|
| 44 |
def load_trained_model():
|
| 45 |
+
return load_model('my_inceptionmodelwithoutaug8.h5')
|
| 46 |
|
| 47 |
def compress_image(image_bytes, max_size_kb=500):
|
| 48 |
img = Image.open(io.BytesIO(image_bytes))
|