imagetagger
To upload files, please first save the app
import streamlit as st
from PIL import Image
st.title("Image Tagger")
uploaded_file = st.file_uploader("Upload an image", type=['jpg', 'jpeg', 'png'])
if uploaded_file is not None:
image = Image.open(uploaded_file)
st.image(image, caption='Uploaded Image', use_column_width=True)
tags = st.text_input('Enter tags (comma separated)')
if st.button('Submit'):
if tags:
st.write('Tags added:', tags.split(','))
else:
st.write('No tags added.')
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?