Daniel Cerda Escobar commited on
Commit
83e62aa
·
1 Parent(s): 54614fc

Update app file

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -34,12 +34,12 @@ with col2:
34
 
35
  st.write('##')
36
 
37
- col1, col2, col3, col4 = st.columns([5, 15, 15, 5])
38
  with col2:
39
  st.markdown(f"##### Input File")
40
  # set input image by upload
41
  image_file = st.file_uploader("Upload your diagram", type=["pdf"])
42
- with col3:
43
  # set input images from examples
44
  def slider_func(option):
45
  option_to_id = {
@@ -60,4 +60,4 @@ with col3:
60
  image = Image.open(image_file)
61
  else:
62
  image = sahi.utils.cv.read_image_as_pil(IMAGE_TO_URL[slider])
63
- st.image(image, width = 250)
 
34
 
35
  st.write('##')
36
 
37
+ col1, col2, col3, col4, col5 = st.columns([3, 12, 3, 12, 3])
38
  with col2:
39
  st.markdown(f"##### Input File")
40
  # set input image by upload
41
  image_file = st.file_uploader("Upload your diagram", type=["pdf"])
42
+ with col4:
43
  # set input images from examples
44
  def slider_func(option):
45
  option_to_id = {
 
60
  image = Image.open(image_file)
61
  else:
62
  image = sahi.utils.cv.read_image_as_pil(IMAGE_TO_URL[slider])
63
+ st.image(image, width = 300)