API Calls & Outputs

Hi, I have a python-based program that makes API calls, I have included the necessary buttons to trigger the API however the API is getting triggered even when I refresh the page. How do I trigger the API only after the “Button” is called for?

Hi @Ajay_Chakravarthy, welcome to the Streamlit community!

Can you post a code snippet showing what you’ve already tried?

I am trying out a very simple application. to familiarize myself with streamlit…

So basically I want the function to run only after I have entered all the inputs and hit submit but the app is executing after each entry…

Can you show a sample code on how I should use the submit functions?