Spaces:
Runtime error
Runtime error
Update app.py
Browse files62 unmodified lines63646566676869707162 unmodified lines# if the user has submitted an image, generate hashtagsif image_file is not None:try:hashtags = generate_hashtags(image_file)if len(hashtags) > 0:st.write(f"Caption : {hashtags[1]}")st.write("Top 10 hashtags for this image:")for tag in hashtags[0]:st.write(tag)62 unmodified lines6364656667686970717262 unmodified lines# if the user has submitted an image, generate hashtagsif image_file is not None:try:st.image(image_file, width = 500, channels = 'RGB')hashtags = generate_hashtags(image_file)if len(hashtags) > 0:# st.write(f"Caption : {hashtags[1]}")st.write("Top 10 hashtags for this image:")for tag in hashtags[0]:st.write(tag)
app.py+2-1