drkareemkamal commited on
Commit
a026f3a
·
verified ·
1 Parent(s): 2b39b64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,8 +26,8 @@ model = tf.keras.models.load_model(
26
  # 3.prediction function (predict())
27
 
28
  def load_and_prep_imgg(img : Image.Image, img_shape=224, scale=True):
29
- if not isinstance(filename, str):
30
- raise ValueError("The filename must be a string representing the file path.")
31
  # img = tf.io.read_file(filename)
32
  # img = tf.io.decode_image(img, channels=3)
33
  # img = tf.image.resize(img, size=[img_shape, img_shape])
 
26
  # 3.prediction function (predict())
27
 
28
  def load_and_prep_imgg(img : Image.Image, img_shape=224, scale=True):
29
+ # if not isinstance(filename, str):
30
+ # raise ValueError("The filename must be a string representing the file path.")
31
  # img = tf.io.read_file(filename)
32
  # img = tf.io.decode_image(img, channels=3)
33
  # img = tf.image.resize(img, size=[img_shape, img_shape])