Update app.py
Browse files
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))
|