Hi Streamlit Community!
Day on day while I solve interesting requirements, Its really interesting. I would like to know from the community is such requirement is possible.
Creating Dynamic Buttons: Below code creates as many buttons as the items in the list. But the question is how do I access the individual button clicks here?
import streamlit as st import random import string def get_random_string(length): # Random string with the combination of lower and upper case letters = string.ascii_letters result_str = ''.join(random.choice(letters) for i in range(length)) print("Random string is:", result_str) applist = ["Sentiment Analysis", "Word Cloud", "Topic Model"] for i in range(len(applist)): app = st.button(applist[i], key=get_random_string(8))
Say, I want to control my application based on the individual button click.
Curious to know if such problems can be solved. Thanks.