Vageesh1 commited on
Commit
d662431
·
1 Parent(s): b697f9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -63,9 +63,10 @@ image_file = st.file_uploader("Upload an image", type=["jpg", "jpeg", "png"])
63
  # if the user has submitted an image, generate hashtags
64
  if image_file is not None:
65
  try:
 
66
  hashtags = generate_hashtags(image_file)
67
  if len(hashtags) > 0:
68
- st.write(f"Caption : {hashtags[1]}")
69
  st.write("Top 10 hashtags for this image:")
70
  for tag in hashtags[0]:
71
  st.write(tag)
 
63
  # if the user has submitted an image, generate hashtags
64
  if image_file is not None:
65
  try:
66
+ st.image(image_file, width = 500, channels = 'RGB')
67
  hashtags = generate_hashtags(image_file)
68
  if len(hashtags) > 0:
69
+ # st.write(f"Caption : {hashtags[1]}")
70
  st.write("Top 10 hashtags for this image:")
71
  for tag in hashtags[0]:
72
  st.write(tag)