80cols commited on
Commit
6a2a3a3
·
verified ·
1 Parent(s): b8ab561

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +50 -28
app.py CHANGED
@@ -674,6 +674,29 @@ with demo:
674
  """
675
  )
676
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
677
 
678
 
679
 
@@ -700,24 +723,24 @@ with demo:
700
 
701
 
702
 
703
- ########################## Key Gen Part ##########################
704
 
705
- gr.Markdown(
706
- "## Step 1: Generate the keys\n\n"
707
- """In Fully Homomorphic Encryption (FHE) methods, two types of keys are created. The first
708
- type, called secret keys, are used to encrypt and decrypt the user's data. The second type,
709
- called evaluation keys, enables a server to work on the encrypted data without seeing the
710
- actual data.
711
- """
712
- )
713
 
714
- gen_key_btn = gr.Button("Generate the secret and evaluation keys")
715
 
716
- gen_key_btn.click(
717
- key_gen_fn,
718
- inputs=[],
719
- outputs=[gen_key_btn],
720
- )
721
 
722
  ########################## Main document Part ##########################
723
 
@@ -977,19 +1000,6 @@ demo.launch(share=False)
977
  # # """
978
  # # )
979
 
980
-
981
-
982
-
983
-
984
-
985
-
986
-
987
-
988
-
989
-
990
-
991
-
992
-
993
  # with gr.Row():
994
  # with gr.Column(elem_id="center_column"):
995
  # gr.Image("Img/schema.png", width=200, show_label=False)
@@ -1017,6 +1027,18 @@ demo.launch(share=False)
1017
 
1018
  # gr.Markdown("<hr />")
1019
 
 
 
 
 
 
 
 
 
 
 
 
 
1020
  # ########################## Encrypt Data ##########################
1021
 
1022
  # gr.Markdown(
 
674
  """
675
  )
676
 
677
+ gr.Markdown("<hr />")
678
+
679
+ ########################## Key Gen Part ##########################
680
+
681
+ gr.Markdown(
682
+ "## Step 1: Generate the keys\n\n"
683
+ """In Fully Homomorphic Encryption (FHE) methods, two types of keys are created. The first
684
+ type, called secret keys, are used to encrypt and decrypt the user's data. The second type,
685
+ called evaluation keys, enables a server to work on the encrypted data without seeing the
686
+ actual data.
687
+ """
688
+ )
689
+
690
+ gen_key_btn = gr.Button("Generate the secret and evaluation keys")
691
+
692
+ gen_key_btn.click(
693
+ key_generated,
694
+ inputs=[],
695
+ outputs=[gen_key_btn],
696
+ )#547
697
+
698
+ gr.Markdown("<hr />")
699
+
700
 
701
 
702
 
 
723
 
724
 
725
 
726
+ # ########################## Key Gen Part ##########################
727
 
728
+ # gr.Markdown(
729
+ # "## Step 1: Generate the keys\n\n"
730
+ # """In Fully Homomorphic Encryption (FHE) methods, two types of keys are created. The first
731
+ # type, called secret keys, are used to encrypt and decrypt the user's data. The second type,
732
+ # called evaluation keys, enables a server to work on the encrypted data without seeing the
733
+ # actual data.
734
+ # """
735
+ # )
736
 
737
+ # gen_key_btn = gr.Button("Generate the secret and evaluation keys")
738
 
739
+ # gen_key_btn.click(
740
+ # key_gen_fn,
741
+ # inputs=[],
742
+ # outputs=[gen_key_btn],
743
+ # )
744
 
745
  ########################## Main document Part ##########################
746
 
 
1000
  # # """
1001
  # # )
1002
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1003
  # with gr.Row():
1004
  # with gr.Column(elem_id="center_column"):
1005
  # gr.Image("Img/schema.png", width=200, show_label=False)
 
1027
 
1028
  # gr.Markdown("<hr />")
1029
 
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
  # ########################## Encrypt Data ##########################
1043
 
1044
  # gr.Markdown(