ywanguj commited on
Commit
d169a3c
·
verified ·
1 Parent(s): a845bc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -30,8 +30,9 @@ uploaded_audio = st.file_uploader("Upload an audio file", type = ['mp3','mov','e
30
  if uploaded_image is not None:
31
  with st.spinner("Loading image..."):
32
  time.sleep(1) # Simulate a delay
33
- image = image.open(uploaded_image)
34
  caption = generate_image_caption(image)
 
35
  st.image(image, caption='Uploaded Image', use_column_width=True)
36
 
37
  #Play audio with apinner:
 
30
  if uploaded_image is not None:
31
  with st.spinner("Loading image..."):
32
  time.sleep(1) # Simulate a delay
33
+ image = Image.open(uploaded_image)
34
  caption = generate_image_caption(image)
35
+ print(caption)
36
  st.image(image, caption='Uploaded Image', use_column_width=True)
37
 
38
  #Play audio with apinner: