Spaces:
Runtime error
Runtime error
Commit ·
391642d
1
Parent(s): 2b27752
update
Browse files
app.py
CHANGED
|
@@ -344,20 +344,20 @@ if __name__ == "__main__":
|
|
| 344 |
b_decrypt_result = gr.Button("🔍 Decrypt scan result")
|
| 345 |
|
| 346 |
scan_result = gr.Textbox(label="Scan Result:")
|
| 347 |
-
|
| 348 |
# Button for key generation
|
| 349 |
b_gen_key.click(keygen, inputs=[eval_key], outputs=[])
|
| 350 |
|
| 351 |
# Button to extract vector
|
| 352 |
b_extract.click(
|
| 353 |
-
|
| 354 |
inputs=[],
|
| 355 |
outputs=[extracted_vector],
|
| 356 |
)
|
| 357 |
|
| 358 |
# Button to encrypt file
|
| 359 |
b_encrypt_file.click(
|
| 360 |
-
|
| 361 |
inputs=[file_input, eval_key],
|
| 362 |
outputs=[encrypted_file],
|
| 363 |
)
|
|
|
|
| 344 |
b_decrypt_result = gr.Button("🔍 Decrypt scan result")
|
| 345 |
|
| 346 |
scan_result = gr.Textbox(label="Scan Result:")
|
| 347 |
+
|
| 348 |
# Button for key generation
|
| 349 |
b_gen_key.click(keygen, inputs=[eval_key], outputs=[])
|
| 350 |
|
| 351 |
# Button to extract vector
|
| 352 |
b_extract.click(
|
| 353 |
+
encode_quantize,
|
| 354 |
inputs=[],
|
| 355 |
outputs=[extracted_vector],
|
| 356 |
)
|
| 357 |
|
| 358 |
# Button to encrypt file
|
| 359 |
b_encrypt_file.click(
|
| 360 |
+
encrypt_encoded_quantize,
|
| 361 |
inputs=[file_input, eval_key],
|
| 362 |
outputs=[encrypted_file],
|
| 363 |
)
|