VaultChem commited on
Commit
b122e53
Β·
verified Β·
1 Parent(s): cec3cf2

updated text again

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -530,7 +530,7 @@ if __name__ == "__main__":
530
 
531
  # Use the custom keyup component for text input
532
  molecule_to_test = st_keyup(
533
- label="Enter a molecular SMILES string or click on one of the buttons above",
534
  value=st.session_state.get("molecule_to_test", ""),
535
  )
536
  submit_molecule = st.button(
@@ -563,7 +563,7 @@ if __name__ == "__main__":
563
  """
564
  st.markdown(bullet_points, unsafe_allow_html=True)
565
  button_gen_key = st.button(
566
- "Click Here to generate Keys for this session", on_click=keygen_util
567
  )
568
  if st.session_state["key_generated"] == True:
569
  st.success("Keys generated successfully", icon="πŸ™Œ")
@@ -580,7 +580,7 @@ if __name__ == "__main__":
580
  st.subheader(
581
  f"Step 3 : Encrypt molecule using private key and send it to server."
582
  )
583
- encrypt_button = st.button("Click to Encrypt", on_click=encrpyt_data_util)
584
  if st.session_state["encrypt"] == True:
585
  st.success("Successfully Encrypted Data", icon="πŸ™Œ")
586
  st.text("The server can only see the encrypted data:")
@@ -594,7 +594,7 @@ if __name__ == "__main__":
594
 
595
  with st.container():
596
  st.subheader(f"Step 4 : Run encrypted prediction on server side.")
597
- fhe_button = st.button("Click to Predict in FHE domain", on_click=FHE_util)
598
  if st.session_state["fhe_done"]:
599
  st.success("Prediction Done Successfuly in FHE domain", icon="πŸ™Œ")
600
  st.code(
@@ -624,7 +624,7 @@ if __name__ == "__main__":
624
 
625
  with st.container():
626
  st.subheader(f"Step 6 : Reset to predict a new molecule")
627
- reset_button = st.button("Click Here to Reset", on_click=clear_session_state)
628
  x, y, z = st.columns(3)
629
  with x:
630
  st.write("")
 
530
 
531
  # Use the custom keyup component for text input
532
  molecule_to_test = st_keyup(
533
+ label="Enter a molecular SMILES string or choose one of the two options",
534
  value=st.session_state.get("molecule_to_test", ""),
535
  )
536
  submit_molecule = st.button(
 
563
  """
564
  st.markdown(bullet_points, unsafe_allow_html=True)
565
  button_gen_key = st.button(
566
+ "Generate Keys for this session", on_click=keygen_util
567
  )
568
  if st.session_state["key_generated"] == True:
569
  st.success("Keys generated successfully", icon="πŸ™Œ")
 
580
  st.subheader(
581
  f"Step 3 : Encrypt molecule using private key and send it to server."
582
  )
583
+ encrypt_button = st.button("Encrypt molecule", on_click=encrpyt_data_util)
584
  if st.session_state["encrypt"] == True:
585
  st.success("Successfully Encrypted Data", icon="πŸ™Œ")
586
  st.text("The server can only see the encrypted data:")
 
594
 
595
  with st.container():
596
  st.subheader(f"Step 4 : Run encrypted prediction on server side.")
597
+ fhe_button = st.button("Predict in FHE domain", on_click=FHE_util)
598
  if st.session_state["fhe_done"]:
599
  st.success("Prediction Done Successfuly in FHE domain", icon="πŸ™Œ")
600
  st.code(
 
624
 
625
  with st.container():
626
  st.subheader(f"Step 6 : Reset to predict a new molecule")
627
+ reset_button = st.button("Reset app", on_click=clear_session_state)
628
  x, y, z = st.columns(3)
629
  with x:
630
  st.write("")