Graf-J commited on
Commit
df5fcd5
·
verified ·
1 Parent(s): db4ed82

Solve Jitter Bug

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -231,7 +231,7 @@ with col2:
231
  # Display Side by Side (Input vs Prediction)
232
  res_col1, res_col2 = st.columns(2)
233
  with res_col1:
234
- st.image(transformed_img, caption=f"Original: '{captcha_text}'", use_container_width=True)
235
 
236
  with res_col2:
237
  # Character-level coloring
@@ -274,18 +274,19 @@ with col_sec2_1:
274
  "Value": list(stats_2.values())
275
  })
276
 
 
 
 
277
  with st.expander("Show Example Images"):
278
- st.markdown("Drag and Drop one of these images into the uploader above!")
279
 
280
  # Display in a grid of 3 columns
281
- with st.container(height=400):
282
  cols = st.columns(3)
283
  for i, img_path in enumerate(image_files):
284
  with cols[i % 3]:
285
  st.image(img_path, use_container_width=True)
286
 
287
- with col_sec2_2:
288
- st.subheader("Upload an image")
289
  uploaded_file = st.file_uploader("Choose an image file", type=["png", "jpg", "jpeg"], key="test_uploader")
290
 
291
  image_to_predict = None
 
231
  # Display Side by Side (Input vs Prediction)
232
  res_col1, res_col2 = st.columns(2)
233
  with res_col1:
234
+ st.image(transformed_img, caption=f"Original: '{captcha_text}'")
235
 
236
  with res_col2:
237
  # Character-level coloring
 
274
  "Value": list(stats_2.values())
275
  })
276
 
277
+ with col_sec2_2:
278
+ st.subheader("Upload an image")
279
+
280
  with st.expander("Show Example Images"):
281
+ st.markdown("Drag and Drop one of these images into the uploader below!")
282
 
283
  # Display in a grid of 3 columns
284
+ with st.container(height=300):
285
  cols = st.columns(3)
286
  for i, img_path in enumerate(image_files):
287
  with cols[i % 3]:
288
  st.image(img_path, use_container_width=True)
289
 
 
 
290
  uploaded_file = st.file_uploader("Choose an image file", type=["png", "jpg", "jpeg"], key="test_uploader")
291
 
292
  image_to_predict = None