Mahimai Raja J commited on
Commit
02567ed
1 Parent(s): 45c971c

Initial Release

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = labels.split()[0]
35
- confidence = float(labels.split()[1])
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 = str(labels).split()[0]
35
+ confidence = float(str(labels).split()[1])
36
 
37
  st.subheader(f"Result {result_class} with confidence {confidence * 100 :.2f}%")
38
  st.image(img_)