Mahimai Raja J
commited on
Commit
•
aab35e8
1
Parent(s):
02567ed
Initial Release
Browse files
app.py
CHANGED
@@ -31,8 +31,8 @@ def processImage():
|
|
31 |
cv2.imwrite('data/result.jpg', result_frame)
|
32 |
# display the image and class
|
33 |
img_ = Image.open(f"data/result.jpg")
|
34 |
-
result_class =
|
35 |
-
confidence = float(
|
36 |
|
37 |
st.subheader(f"Result {result_class} with confidence {confidence * 100 :.2f}%")
|
38 |
st.image(img_)
|
|
|
31 |
cv2.imwrite('data/result.jpg', result_frame)
|
32 |
# display the image and class
|
33 |
img_ = Image.open(f"data/result.jpg")
|
34 |
+
result_class = " ".join(labels).split()[0]
|
35 |
+
confidence = float(" ".join(labels).split()[1])
|
36 |
|
37 |
st.subheader(f"Result {result_class} with confidence {confidence * 100 :.2f}%")
|
38 |
st.image(img_)
|