From 672aceb72d0ff69aa21926279b025f793cc571a0 Mon Sep 17 00:00:00 2001 From: Pratham Soni Date: Thu, 20 Jun 2024 09:31:49 -0500 Subject: [PATCH] table reload when doczy pipeline has fully run --- streamlit/interface_1.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/streamlit/interface_1.py b/streamlit/interface_1.py index 25666d5..861e195 100644 --- a/streamlit/interface_1.py +++ b/streamlit/interface_1.py @@ -265,7 +265,6 @@ with buttons[1]: st.error("Select at least one Group No. for every Contract") else: #Resets the Data Editor with Blank Values - update_dataframe() with st.spinner('Running...'): # csv_buf = StringIO() # additional_info.to_csv(csv_buf, header=True, index=False) @@ -282,6 +281,9 @@ with buttons[1]: response = requests.post(doczy_pipeline, json = myobj) if response.status_code >= 200 and response.status_code < 300: st.write("Success") + #Updates and Reruns the Code after everything on the interface has completed + update_dataframe() + st.experimental_rerun() # st.write(myobj) else: st.write("Failed")