Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
mariotawfik
commited on
Commit
β’
ba74a50
1
Parent(s):
34ea80d
Update app.py
Browse files
app.py
CHANGED
@@ -349,14 +349,14 @@ if __name__ == "__main__":
|
|
349 |
"The encrypted scan result is sent back to the client, who can finally decrypt it with their private key. Only the client is aware of the original file content and the scan result."
|
350 |
)
|
351 |
b_decrypt_result = gr.Button("π Decrypt scan result")
|
352 |
-
user_id_input = gr.Textbox(value=user_id)
|
353 |
scan_result = gr.Textbox(label="Scan Result:")
|
354 |
|
355 |
-
eval_key_input = gr.Textbox(value=eval_key)
|
356 |
# Button for key generation
|
357 |
b_gen_key.click(fn=keygen, inputs=[eval_key_input, user_id_input], outputs=[evaluation_key])
|
358 |
|
359 |
-
encodings_input = gr.Textbox(value=encodings)
|
360 |
# Button to extract vector
|
361 |
b_extract.click(
|
362 |
fn=encode_quantize,
|
|
|
349 |
"The encrypted scan result is sent back to the client, who can finally decrypt it with their private key. Only the client is aware of the original file content and the scan result."
|
350 |
)
|
351 |
b_decrypt_result = gr.Button("π Decrypt scan result")
|
352 |
+
user_id_input = gr.Textbox(value=user_id, visible=False)
|
353 |
scan_result = gr.Textbox(label="Scan Result:")
|
354 |
|
355 |
+
eval_key_input = gr.Textbox(value=eval_key, visible=False)
|
356 |
# Button for key generation
|
357 |
b_gen_key.click(fn=keygen, inputs=[eval_key_input, user_id_input], outputs=[evaluation_key])
|
358 |
|
359 |
+
encodings_input = gr.Textbox(value=encodings, visible=False)
|
360 |
# Button to extract vector
|
361 |
b_extract.click(
|
362 |
fn=encode_quantize,
|