Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -15,7 +15,7 @@ import pickle
|
|
| 15 |
def run():
|
| 16 |
file = st.file_uploader("Upload an image", type=["jpg", "png"])
|
| 17 |
|
| 18 |
-
model = load_model('
|
| 19 |
target_size=(224, 224)
|
| 20 |
|
| 21 |
def import_and_predict(image_data, model):
|
|
|
|
| 15 |
def run():
|
| 16 |
file = st.file_uploader("Upload an image", type=["jpg", "png"])
|
| 17 |
|
| 18 |
+
model = load_model('src/my_model.keras', custom_objects={'KerasLayer': KerasLayer})
|
| 19 |
target_size=(224, 224)
|
| 20 |
|
| 21 |
def import_and_predict(image_data, model):
|