Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -321,7 +321,6 @@ def run_fhe_fn(user_id: str) -> Dict:
|
|
| 321 |
client = FHEModelClient(path_dir=DEPLOYMENT_DIR_MODEL1, key_dir=KEYS_DIR / f"{user_id}_1")
|
| 322 |
client.load()
|
| 323 |
|
| 324 |
-
breakpoint()
|
| 325 |
# Deserialize, decrypt and post-process the encrypted output
|
| 326 |
global global_output_1, global_output_2
|
| 327 |
global_output_1 = client.deserialize_decrypt_dequantize(encrypted_output_1)[0][0]
|
|
@@ -488,8 +487,6 @@ def decrypt_fn(user_id: str) -> Dict:
|
|
| 488 |
# Deserialize, decrypt and post-process the encrypted output
|
| 489 |
output = client.deserialize_decrypt_dequantize(encrypted_output)
|
| 490 |
|
| 491 |
-
breakpoint()
|
| 492 |
-
|
| 493 |
# Load also the data from the first two models (they are already downloaded)
|
| 494 |
global global_output_1, global_output_2
|
| 495 |
|
|
@@ -681,12 +678,11 @@ if __name__ == "__main__":
|
|
| 681 |
""")
|
| 682 |
error_box4 = gr.Textbox(label="Error ❌", visible=False)
|
| 683 |
|
| 684 |
-
with gr.Row()
|
| 685 |
-
with gr.
|
| 686 |
-
|
| 687 |
-
|
| 688 |
-
|
| 689 |
-
srv_resp_send_data_box = gr.Checkbox(label="Data Sent", show_label=False)
|
| 690 |
|
| 691 |
send_input_btn.click(
|
| 692 |
send_input_fn,
|
|
|
|
| 321 |
client = FHEModelClient(path_dir=DEPLOYMENT_DIR_MODEL1, key_dir=KEYS_DIR / f"{user_id}_1")
|
| 322 |
client.load()
|
| 323 |
|
|
|
|
| 324 |
# Deserialize, decrypt and post-process the encrypted output
|
| 325 |
global global_output_1, global_output_2
|
| 326 |
global_output_1 = client.deserialize_decrypt_dequantize(encrypted_output_1)[0][0]
|
|
|
|
| 487 |
# Deserialize, decrypt and post-process the encrypted output
|
| 488 |
output = client.deserialize_decrypt_dequantize(encrypted_output)
|
| 489 |
|
|
|
|
|
|
|
| 490 |
# Load also the data from the first two models (they are already downloaded)
|
| 491 |
global global_output_1, global_output_2
|
| 492 |
|
|
|
|
| 678 |
""")
|
| 679 |
error_box4 = gr.Textbox(label="Error ❌", visible=False)
|
| 680 |
|
| 681 |
+
with gr.Row():
|
| 682 |
+
with gr.Column(scale=4):
|
| 683 |
+
send_input_btn = gr.Button("Send data")
|
| 684 |
+
with gr.Column(scale=1):
|
| 685 |
+
srv_resp_send_data_box = gr.Checkbox(label="Data Sent", show_label=False)
|
|
|
|
| 686 |
|
| 687 |
send_input_btn.click(
|
| 688 |
send_input_fn,
|