Spaces:
Running
Running
Update app.py
Browse files
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
|
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))
|