ashish-001 commited on
Commit
e2150f1
·
verified ·
1 Parent(s): 7a2eefa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -50,3 +50,8 @@ if st.button("Generate Caption"):
50
  st.write(generate_caption(img))
51
  else:
52
  st.write("Please upload an image")
 
 
 
 
 
 
50
  st.write(generate_caption(img))
51
  else:
52
  st.write("Please upload an image")
53
+
54
+ if st.button('Use Example Image'):
55
+ img=Image.open('example.jpg') #link to the original image: https://www.flickr.com/photos/bambe1964/7837618434/
56
+ st.image(img, width=300)
57
+ st.write(generate_caption(img))