table reload when doczy pipeline has fully run

This commit is contained in:
Pratham Soni
2024-06-20 09:31:49 -05:00
parent 41c07d3935
commit 672aceb72d
+3 -1
View File
@@ -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")