VaultChem commited on
Commit
6ad939c
β€’
1 Parent(s): 2cbe48e
Files changed (2) hide show
  1. app.py +7 -7
  2. 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(":green[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("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

  • SHA256: 500d250a90d9914ff44866c9cfb87a87a96019e85644ff6dbcbe3fc770b6cacd
  • Pointer size: 132 Bytes
  • Size of remote file: 3.11 MB

Git LFS Details

  • SHA256: 8a7a2ae598fa029ce9b12aa4fe91e1d80e1c562d5cb2b5879e552c416451b657
  • Pointer size: 132 Bytes
  • Size of remote file: 3.17 MB