clean up status message after pipeline is ran

This commit is contained in:
Pratham Soni
2024-07-01 10:40:30 -05:00
committed by Michael McGuinness
parent 732e48bd1e
commit d1a09c49c9
+12 -2
View File
@@ -276,9 +276,19 @@ if client:
# st.write(e)
response = requests.post(doczy_pipeline, json = myobj)
if response.status_code >= 200 and response.status_code < 300:
st.write("Success")
success_message = """
<div style="text-align: center; font-size: 24px; color: green;">
Pipeline Success
</div>
"""
st.markdown(success_message, unsafe_allow_html=True)
# st.write(myobj)
else:
st.write("Failed")
failure_message = """
<div style="text-align: center; font-size: 24px; color: red;">
Pipeline Failed
</div>
"""
st.markdown(failure_message, unsafe_allow_html=True)
# st.write(response.text)