Home > Back-end >  on_click function assigned to Streamlit button runs before the click event in browser
on_click function assigned to Streamlit button runs before the click event in browser

Time:09-08

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="           
  • Related