Defkhan5960 commited on
Commit
a9efa55
·
verified ·
1 Parent(s): 95b119d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("efficent_net224B0.h5")
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=(224, 224))
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)