rayhan26 commited on
Commit
a04a01b
·
verified ·
1 Parent(s): 3130c0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def predict(img):
19
  img = img.convert('RGB')
20
 
21
  # Pra-pemrosesan
22
- # img = tf.keras.utils.img_to_array(img) / 255.0 # Normalisasi ke [0, 1]
23
  img = tf.image.resize(img, (224, 224)) # Ubah ukuran ke 224x224
24
  img = tf.expand_dims(img, axis=0) # Tambahkan dimensi batch
25
 
 
19
  img = img.convert('RGB')
20
 
21
  # Pra-pemrosesan
22
+ img = tf.keras.utils.img_to_array(img) / 255.0 # Normalisasi ke [0, 1]
23
  img = tf.image.resize(img, (224, 224)) # Ubah ukuran ke 224x224
24
  img = tf.expand_dims(img, axis=0) # Tambahkan dimensi batch
25