JaredBailey commited on
Commit
ea4358a
·
verified ·
1 Parent(s): a3b03e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -29,7 +29,7 @@ if 'image_counter' not in st.session_state:
29
  ###
30
  #####
31
  st.markdown("<h1 style='text-align: center; color: black;'>Find Waldo and His Friends</h1>", unsafe_allow_html=True)
32
- st.markdown("<h2 style='text-align: center; color: black;'>Using Computer Vision</h2>", unsafe_allow_html=True)
33
  st.markdown("<p style='text-align: center; color: black;'>Upload an image using your cell phone (single book page), or select an imagefrom the below list</p>", unsafe_allow_html=True)
34
 
35
  _, row1_col2, _ = st.columns([2,3,2])
@@ -51,7 +51,7 @@ with row1_col2:
51
  uploaded_image = ImageOps.exif_transpose(uploaded_image)
52
  st.session_state.image = uploaded_image
53
 
54
- st.markdown("<h3 style='text-align: center; color: black;'>Or Select One of the Following</h3>", unsafe_allow_html=True)
55
 
56
  _, row2_col2, row2_col3, row2_col4, row2_col5, _ = st.columns([8,3,3,3,3,8])
57
  _, row3_col2, row3_col3, row3_col4, row3_col5, _ = st.columns([8,3,3,3,3,8])
@@ -160,7 +160,7 @@ if st.session_state.image is not None:
160
  st.session_state.image_counter += 1
161
 
162
  # Plot predicted image
163
- im_bgr = st.session_state.results[st.session_state.image_counter].plot(line_width=20, font_size=20) # BGR-order numpy array
164
  im_rgb = Image.fromarray(im_bgr[..., ::-1]) # RGB-order PIL image
165
  st.image(im_rgb)
166
 
 
29
  ###
30
  #####
31
  st.markdown("<h1 style='text-align: center; color: black;'>Find Waldo and His Friends</h1>", unsafe_allow_html=True)
32
+ st.markdown("<h3 style='text-align: center; color: black;'>Using Computer Vision</h3>", unsafe_allow_html=True)
33
  st.markdown("<p style='text-align: center; color: black;'>Upload an image using your cell phone (single book page), or select an imagefrom the below list</p>", unsafe_allow_html=True)
34
 
35
  _, row1_col2, _ = st.columns([2,3,2])
 
51
  uploaded_image = ImageOps.exif_transpose(uploaded_image)
52
  st.session_state.image = uploaded_image
53
 
54
+ st.markdown("<h4 style='text-align: center; color: black;'>Or Select One of the Following</h4>", unsafe_allow_html=True)
55
 
56
  _, row2_col2, row2_col3, row2_col4, row2_col5, _ = st.columns([8,3,3,3,3,8])
57
  _, row3_col2, row3_col3, row3_col4, row3_col5, _ = st.columns([8,3,3,3,3,8])
 
160
  st.session_state.image_counter += 1
161
 
162
  # Plot predicted image
163
+ im_bgr = st.session_state.results[st.session_state.image_counter].plot(line_width=20) # BGR-order numpy array
164
  im_rgb = Image.fromarray(im_bgr[..., ::-1]) # RGB-order PIL image
165
  st.image(im_rgb)
166