Image Select
Hi all. Can you help me. I'm trying to make an image selector, like the one made here by https://github.com/jrieke/streamlit-image-select for streamlit. I tried to do this using ToggleButtonsSingle, it worked for me, but all the buttons with pictures end up in one line, and I can have a lot of pictures, I tried to add GridFixed, but now everything crashes because it can’t find the value correctly.
GitHub
GitHub - jrieke/streamlit-image-select: 🖼️ An image select componen...
🖼️ An image select component for Streamlit. Contribute to jrieke/streamlit-image-select development by creating an account on GitHub.
3 Replies
Hi @icecream4!
I think this should work for you:
I think the reason your original code didn't work is in the for loop; the value of
i
changes as we loop through, and the last reference ends up in the value of all buttons.Wow, awesome! Thanks a lot. This is really what I need 🔥