update
Browse files- app.py +7 -7
- scheme2.png +2 -2
app.py
CHANGED
@@ -494,11 +494,11 @@ if __name__ == "__main__":
|
|
494 |
init_session_state()
|
495 |
|
496 |
with st.container():
|
497 |
-
st.header("
|
498 |
st.markdown(
|
499 |
"Run all the steps in order to predict a property for a molecule of your choice. Why not all steps at once? Because we want to show you the steps involved in the process (see figure above)."
|
500 |
)
|
501 |
-
st.subheader("Step 0: Which property do you want to predict?")
|
502 |
st.markdown(
|
503 |
"This app can predict the following properties of confidential molecules:"
|
504 |
)
|
@@ -526,7 +526,7 @@ if __name__ == "__main__":
|
|
526 |
task_options.index(selected_label)
|
527 |
]
|
528 |
|
529 |
-
st.subheader("Step 1: Submit a molecule")
|
530 |
|
531 |
x, y, z = st.columns(3)
|
532 |
|
@@ -573,7 +573,7 @@ if __name__ == "__main__":
|
|
573 |
|
574 |
with st.container():
|
575 |
st.subheader(
|
576 |
-
f"Step 2 : Generate encryption key (private to you) and an evaluation key (public)."
|
577 |
)
|
578 |
bullet_points = """
|
579 |
- Evaluation key is public and accessible by server.
|
@@ -597,7 +597,7 @@ if __name__ == "__main__":
|
|
597 |
|
598 |
with st.container():
|
599 |
st.subheader(
|
600 |
-
f"Step 3 : Encrypt molecule using private key and send it to server."
|
601 |
)
|
602 |
encrypt_button = st.button("Encrypt molecule", on_click=encrpyt_data_util)
|
603 |
if st.session_state["encrypt"] == True:
|
@@ -612,7 +612,7 @@ if __name__ == "__main__":
|
|
612 |
)
|
613 |
|
614 |
with st.container():
|
615 |
-
st.subheader(f"Step 4 : Run encrypted prediction on server side.")
|
616 |
fhe_button = st.button("Predict in FHE domain", on_click=FHE_util)
|
617 |
if st.session_state["fhe_done"]:
|
618 |
st.success("Prediction Done Successfuly in FHE domain", icon="🙌")
|
@@ -623,7 +623,7 @@ if __name__ == "__main__":
|
|
623 |
st.warning("Check if you have generated keys correctly.")
|
624 |
|
625 |
with st.container():
|
626 |
-
st.subheader(f"Step 5 : Decrypt the predictions with your private key.")
|
627 |
decrypt_button = st.button(
|
628 |
"Perform Decryption on FHE inferred prediction", on_click=decrypt_util
|
629 |
)
|
|
|
494 |
init_session_state()
|
495 |
|
496 |
with st.container():
|
497 |
+
st.header("Start")
|
498 |
st.markdown(
|
499 |
"Run all the steps in order to predict a property for a molecule of your choice. Why not all steps at once? Because we want to show you the steps involved in the process (see figure above)."
|
500 |
)
|
501 |
+
st.subheader(":red[Step 0: Which property do you want to predict?]")
|
502 |
st.markdown(
|
503 |
"This app can predict the following properties of confidential molecules:"
|
504 |
)
|
|
|
526 |
task_options.index(selected_label)
|
527 |
]
|
528 |
|
529 |
+
st.subheader(":red[Step 1: Submit a molecule]")
|
530 |
|
531 |
x, y, z = st.columns(3)
|
532 |
|
|
|
573 |
|
574 |
with st.container():
|
575 |
st.subheader(
|
576 |
+
f":red[Step 2 : Generate encryption key (private to you) and an evaluation key (public).]"
|
577 |
)
|
578 |
bullet_points = """
|
579 |
- Evaluation key is public and accessible by server.
|
|
|
597 |
|
598 |
with st.container():
|
599 |
st.subheader(
|
600 |
+
f":red[Step 3 : Encrypt molecule using private key and send it to server.]"
|
601 |
)
|
602 |
encrypt_button = st.button("Encrypt molecule", on_click=encrpyt_data_util)
|
603 |
if st.session_state["encrypt"] == True:
|
|
|
612 |
)
|
613 |
|
614 |
with st.container():
|
615 |
+
st.subheader(f":blue[Step 4 : Run encrypted prediction on server side.]")
|
616 |
fhe_button = st.button("Predict in FHE domain", on_click=FHE_util)
|
617 |
if st.session_state["fhe_done"]:
|
618 |
st.success("Prediction Done Successfuly in FHE domain", icon="🙌")
|
|
|
623 |
st.warning("Check if you have generated keys correctly.")
|
624 |
|
625 |
with st.container():
|
626 |
+
st.subheader(f":red[Step 5 : Decrypt the predictions with your private key.]")
|
627 |
decrypt_button = st.button(
|
628 |
"Perform Decryption on FHE inferred prediction", on_click=decrypt_util
|
629 |
)
|
scheme2.png
CHANGED
![]() |
Git LFS Details
|
![]() |
Git LFS Details
|