kcelia commited on
Commit
f782fe6
β€’
1 Parent(s): c1f41ab

chore: update

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -124,7 +124,7 @@ def get_features_fn(*checked_symptoms: Tuple[str]) -> Dict:
124
  visible=False,
125
  value=get_user_symptoms_from_checkboxgroup(pretty_print(checked_symptoms)),
126
  ),
127
- submit_button: gr.update(value="Symptoms submitted βœ…"),
128
  }
129
 
130
 
@@ -457,7 +457,7 @@ def decrypt_fn(
457
  return {
458
  error_box7: gr.update(visible=False),
459
  decrypt_target_box: out,
460
- submit_button: gr.update(value="Submit symptoms")
461
  }
462
 
463
 
@@ -468,7 +468,7 @@ def reset_fn():
468
 
469
  return {
470
  user_vect_box2: None,
471
- submit_button: gr.update(value="Submit symptoms"),
472
  user_id_box: gr.update(visible=False, value=None, interactive=False),
473
  user_vect_box1: None,
474
  default_symptoms: gr.update(visible=True, value=None),
@@ -535,9 +535,8 @@ if __name__ == "__main__":
535
  )
536
 
537
  # ------------------------- Step 1 -------------------------
538
- gr.Markdown(
539
- "## Step 1: Select chief complaints"
540
- )
541
  gr.Markdown("<span style='color:grey'>Client Side</span>")
542
  gr.Markdown("Select at least 5 chief complaints from the list below.")
543
 
@@ -578,12 +577,14 @@ if __name__ == "__main__":
578
  user_vect_box1 = gr.Textbox(visible=False)
579
 
580
  # Submit botton
581
- submit_button = gr.Button("Submit symptoms")
582
  # Clear botton
583
  clear_button = gr.Button("Reset Space πŸ” ↻", visible=False)
584
 
 
585
  # ------------------------- Step 2 -------------------------
586
  gr.Markdown("## Step 2: Encrypt data")
 
587
  gr.Markdown("<span style='color:grey'>Client Side</span>")
588
  gr.Markdown("### Key Generation")
589
  gr.Markdown(
@@ -660,8 +661,8 @@ if __name__ == "__main__":
660
  )
661
 
662
  # ------------------------- Step 3 -------------------------
663
-
664
  gr.Markdown("## Step 3: Run the FHE evaluation")
 
665
  gr.Markdown("<span style='color:grey'>Server Side</span>")
666
  gr.Markdown(
667
  "Once the server receives the encrypted data, it can process and compute the output without ever decrypting the data just as it would on clear data.\n\n"
@@ -681,10 +682,9 @@ if __name__ == "__main__":
681
  )
682
 
683
  # ------------------------- Step 4 -------------------------
684
-
685
  gr.Markdown("## Step 4: Decrypt the data")
 
686
  gr.Markdown("<span style='color:grey'>Client Side</span>")
687
-
688
  gr.Markdown("### Get the encrypted data from the <span style='color:grey'>Server Side</span>")
689
 
690
  error_box6 = gr.Textbox(label="Error ❌", visible=False)
@@ -717,17 +717,17 @@ if __name__ == "__main__":
717
  )
718
 
719
  # ------------------------- End -------------------------
720
- gr.Markdown(
721
- """**Please Note**: This space is intended solely for educational and demonstration purposes.
722
- It should not be considered as a replacement for professional medical counsel, diagnosis, or therapy for any health or related issues.
723
- Any questions or concerns about your individual health should be addressed to your doctor or another qualified healthcare provider.
724
- """)
725
 
726
  gr.Markdown(
727
  """The app was built with [Concrete ML](https://github.com/zama-ai/concrete-ml), a Privacy-Preserving Machine Learning (PPML) open-source set of tools by Zama.
728
  Try it yourself and don't forget to star on [Github](https://github.com/zama-ai/concrete-ml) ⭐.
729
  """)
730
 
 
 
 
 
 
731
 
732
  submit_button.click(
733
  fn=get_features_fn,
 
124
  visible=False,
125
  value=get_user_symptoms_from_checkboxgroup(pretty_print(checked_symptoms)),
126
  ),
127
+ submit_button: gr.update(value="Data submitted βœ…"),
128
  }
129
 
130
 
 
457
  return {
458
  error_box7: gr.update(visible=False),
459
  decrypt_target_box: out,
460
+ submit_button: gr.update(value="Submit")
461
  }
462
 
463
 
 
468
 
469
  return {
470
  user_vect_box2: None,
471
+ submit_button: gr.update(value="Submit"),
472
  user_id_box: gr.update(visible=False, value=None, interactive=False),
473
  user_vect_box1: None,
474
  default_symptoms: gr.update(visible=True, value=None),
 
535
  )
536
 
537
  # ------------------------- Step 1 -------------------------
538
+ gr.Markdown("## Step 1: Select chief complaints")
539
+ gr.Markdown("<hr />")
 
540
  gr.Markdown("<span style='color:grey'>Client Side</span>")
541
  gr.Markdown("Select at least 5 chief complaints from the list below.")
542
 
 
577
  user_vect_box1 = gr.Textbox(visible=False)
578
 
579
  # Submit botton
580
+ submit_button = gr.Button("Submit")
581
  # Clear botton
582
  clear_button = gr.Button("Reset Space πŸ” ↻", visible=False)
583
 
584
+
585
  # ------------------------- Step 2 -------------------------
586
  gr.Markdown("## Step 2: Encrypt data")
587
+ gr.Markdown("<hr />")
588
  gr.Markdown("<span style='color:grey'>Client Side</span>")
589
  gr.Markdown("### Key Generation")
590
  gr.Markdown(
 
661
  )
662
 
663
  # ------------------------- Step 3 -------------------------
 
664
  gr.Markdown("## Step 3: Run the FHE evaluation")
665
+ gr.Markdown("<hr />")
666
  gr.Markdown("<span style='color:grey'>Server Side</span>")
667
  gr.Markdown(
668
  "Once the server receives the encrypted data, it can process and compute the output without ever decrypting the data just as it would on clear data.\n\n"
 
682
  )
683
 
684
  # ------------------------- Step 4 -------------------------
 
685
  gr.Markdown("## Step 4: Decrypt the data")
686
+ gr.Markdown("<hr />")
687
  gr.Markdown("<span style='color:grey'>Client Side</span>")
 
688
  gr.Markdown("### Get the encrypted data from the <span style='color:grey'>Server Side</span>")
689
 
690
  error_box6 = gr.Textbox(label="Error ❌", visible=False)
 
717
  )
718
 
719
  # ------------------------- End -------------------------
 
 
 
 
 
720
 
721
  gr.Markdown(
722
  """The app was built with [Concrete ML](https://github.com/zama-ai/concrete-ml), a Privacy-Preserving Machine Learning (PPML) open-source set of tools by Zama.
723
  Try it yourself and don't forget to star on [Github](https://github.com/zama-ai/concrete-ml) ⭐.
724
  """)
725
 
726
+ gr.Markdown(
727
+ """**Please Note**: This space is intended solely for educational and demonstration purposes.
728
+ It should not be considered as a replacement for professional medical counsel, diagnosis, or therapy for any health or related issues.
729
+ Any questions or concerns about your individual health should be addressed to your doctor or another qualified healthcare provider.
730
+ """)
731
 
732
  submit_button.click(
733
  fn=get_features_fn,