ydshieh commited on
Commit
fd6cb9f
1 Parent(s): 19ac389
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -8,9 +8,9 @@ st.title("French Image Caption App")
8
  # For newline
9
  st.write('\n')
10
 
11
- image = Image.open('samples/val_000000039769.jpg')
12
- show = st.image(image, use_column_width=True)
13
- show.image(image, 'Preloaded Image', use_column_width=True)
14
 
15
  with st.spinner('Loading ViT-GPT2 model ...'):
16
 
@@ -27,6 +27,7 @@ uploaded_file = st.sidebar.file_uploader(" ", type=['png', 'jpg', 'jpeg'])
27
  if uploaded_file is not None:
28
 
29
  image = Image.open(uploaded_file)
 
30
  show.image(image, 'Uploaded Image', use_column_width=True)
31
 
32
 
 
8
  # For newline
9
  st.write('\n')
10
 
11
+ #image = Image.open('samples/val_000000039769.jpg')
12
+ #show = st.image(image, use_column_width=True)
13
+ #show.image(image, 'Preloaded Image', use_column_width=True)
14
 
15
  with st.spinner('Loading ViT-GPT2 model ...'):
16
 
 
27
  if uploaded_file is not None:
28
 
29
  image = Image.open(uploaded_file)
30
+ show = st.image(image, use_column_width=True)
31
  show.image(image, 'Uploaded Image', use_column_width=True)
32
 
33