tommy24 commited on
Commit
d3fd89d
·
1 Parent(s): f3e1197

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ with open("labels.txt", "r") as file:
28
 
29
  def classify(Textbox, Image, Textbox2, Textbox3):
30
  if Textbox3 == code:
31
- if Image != None:
32
  output = []
33
  image_data = np.array(Image)
34
  image_data = cv.resize(image_data, (224, 224))
 
28
 
29
  def classify(Textbox, Image, Textbox2, Textbox3):
30
  if Textbox3 == code:
31
+ if Image is not None:
32
  output = []
33
  image_data = np.array(Image)
34
  image_data = cv.resize(image_data, (224, 224))