I am trying to run a script in streamlit button with onclick="" parameter. Problem is, the script start running before even button shows up on the browser. Any idea what maybe the mistake here?
import streamlit as st
from level_packs import create_packs
st.set_page_config(page_title="Main work", page_icon="")
st.markdown("# Main work")
st.button('Run script', on_click=create_packs())