Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from tensorflow.keras.applications.efficientnet import preprocess_input
|
|
| 7 |
import plotly.express as px
|
| 8 |
|
| 9 |
# model yükle
|
| 10 |
-
model = tf.keras.models.load_model("
|
| 11 |
|
| 12 |
# Etiketler
|
| 13 |
waste_labels = {0: 'Fibres', 1: 'Nanowires', 2: 'Particles', 3: 'Powder'}
|
|
@@ -23,7 +23,7 @@ uploaded_image = st.file_uploader("SEM Görüntüsünü Yükleyin", type=["jpg",
|
|
| 23 |
|
| 24 |
if uploaded_image is not None:
|
| 25 |
# Görüntüyü modelin girdi boyutuna yeniden boyutlandırın
|
| 26 |
-
img = image.load_img(uploaded_image, target_size=(
|
| 27 |
img = image.img_to_array(img)
|
| 28 |
img = np.expand_dims(img, axis=0)
|
| 29 |
img = preprocess_input(img)
|
|
|
|
| 7 |
import plotly.express as px
|
| 8 |
|
| 9 |
# model yükle
|
| 10 |
+
model = tf.keras.models.load_model("efficent_netB7.h5")
|
| 11 |
|
| 12 |
# Etiketler
|
| 13 |
waste_labels = {0: 'Fibres', 1: 'Nanowires', 2: 'Particles', 3: 'Powder'}
|
|
|
|
| 23 |
|
| 24 |
if uploaded_image is not None:
|
| 25 |
# Görüntüyü modelin girdi boyutuna yeniden boyutlandırın
|
| 26 |
+
img = image.load_img(uploaded_image, target_size=(600, 600))
|
| 27 |
img = image.img_to_array(img)
|
| 28 |
img = np.expand_dims(img, axis=0)
|
| 29 |
img = preprocess_input(img)
|