Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from mychain import MyChainSend
|
|
10 |
from mychain import MyChainRec
|
11 |
from mychain import MyChainTrans
|
12 |
import bc_utils
|
13 |
-
|
14 |
|
15 |
from huggingface_hub import (create_repo,get_full_repo_name,upload_file,CommitOperationAdd,HfApi)
|
16 |
|
@@ -553,9 +553,9 @@ with gr.Blocks() as bc:
|
|
553 |
return e,None,None,e
|
554 |
|
555 |
|
556 |
-
gen_wal_btn.click(
|
557 |
-
rsa_enc_btn.click(
|
558 |
-
rsa_dec_btn.click(
|
559 |
|
560 |
check_trans.click(deep_trans,None,[block_text,out_box_bool])
|
561 |
|
|
|
10 |
from mychain import MyChainRec
|
11 |
from mychain import MyChainTrans
|
12 |
import bc_utils
|
13 |
+
import crypt
|
14 |
|
15 |
from huggingface_hub import (create_repo,get_full_repo_name,upload_file,CommitOperationAdd,HfApi)
|
16 |
|
|
|
553 |
return e,None,None,e
|
554 |
|
555 |
|
556 |
+
gen_wal_btn.click(crypt.generate_keys,None,[out2,out1, img3,out3,img1,img2]).then(create_new_chain,out3,[json_out,block_text,send,rec]).then(app_og.test_fn,[img1,img2],[priv_key_in,pub_key_in,priv_key_in1])
|
557 |
+
rsa_enc_btn.click(crypt.encrypt_text,[rsa_to_enc,pub_key_in,priv_key_in1,out3],[rsa_enc_mes,qr_enc_mes]).then(app_og.test_fn2,qr_enc_mes,mes_in)
|
558 |
+
rsa_dec_btn.click(crypt.decrypt_text,[mes_in,priv_key_in],rsa_dec_mes)
|
559 |
|
560 |
check_trans.click(deep_trans,None,[block_text,out_box_bool])
|
561 |
|