Shrikrishna commited on
Commit
1739711
·
1 Parent(s): 97f8d7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -19,6 +19,7 @@ st.title("Welcome to Sports Person Classifier!")
19
 
20
 
21
  def classify_image(image_base64_data, file_path=None):
 
22
 
23
  imgs = get_cropped_image_if_2_eyes_new(file_path, image_base64_data)
24
 
@@ -47,6 +48,7 @@ def get_cropped_image_if_2_eyes_new(file_path, image_base64_data):
47
 
48
  if file_path:
49
  img = cv2.imread(file_path)
 
50
  else:
51
  img = get_cv2_image_from_base64_string(image_base64_data)
52
 
 
19
 
20
 
21
  def classify_image(image_base64_data, file_path=None):
22
+ st.text(file_path)
23
 
24
  imgs = get_cropped_image_if_2_eyes_new(file_path, image_base64_data)
25
 
 
48
 
49
  if file_path:
50
  img = cv2.imread(file_path)
51
+ st.image(img,width=150, caption='Uploaded Image')
52
  else:
53
  img = get_cv2_image_from_base64_string(image_base64_data)
54