Spaces:
Runtime error
Runtime error
AmitPress
commited on
Commit
·
71a9781
1
Parent(s):
0be3da5
some changes made
Browse files
app.py
CHANGED
@@ -18,4 +18,7 @@ if photo:
|
|
18 |
bx = model(image)[0].boxes[0]
|
19 |
col1.write(f"Result: {(classes[int(bx.cls[0])])}")
|
20 |
except:
|
21 |
-
col1.write(f"Result: Could not detect")
|
|
|
|
|
|
|
|
18 |
bx = model(image)[0].boxes[0]
|
19 |
col1.write(f"Result: {(classes[int(bx.cls[0])])}")
|
20 |
except:
|
21 |
+
col1.write(f"Result: Could not detect")
|
22 |
+
else:
|
23 |
+
col1.write('Please Upload an Image of a Snake')
|
24 |
+
col1.write('Result will be shown as soon as the image is uploaded')
|