Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ from mychain import MyChainSend
|
|
10 |
from mychain import MyChainRec
|
11 |
from mychain import MyChainTrans
|
12 |
import bc_utils
|
|
|
13 |
|
14 |
from huggingface_hub import (create_repo,get_full_repo_name,upload_file,CommitOperationAdd,HfApi)
|
15 |
|
@@ -538,6 +539,12 @@ with gr.Blocks() as bc:
|
|
538 |
except Exception as e:
|
539 |
print (e)
|
540 |
return e,None,None,e
|
|
|
|
|
|
|
|
|
|
|
|
|
541 |
check_trans.click(deep_trans,None,[block_text,out_box_bool])
|
542 |
|
543 |
reset_sender.click(res_send,send,block_text)
|
|
|
10 |
from mychain import MyChainRec
|
11 |
from mychain import MyChainTrans
|
12 |
import bc_utils
|
13 |
+
import app_og
|
14 |
|
15 |
from huggingface_hub import (create_repo,get_full_repo_name,upload_file,CommitOperationAdd,HfApi)
|
16 |
|
|
|
539 |
except Exception as e:
|
540 |
print (e)
|
541 |
return e,None,None,e
|
542 |
+
|
543 |
+
|
544 |
+
gen_wal_btn.click(app_og.generate_keys,None,[out2,out1, img3,out3,img1,img2]).then(test_fn,[img1,img2],[priv_key_in,pub_key_in])
|
545 |
+
rsa_enc_btn.click(app_og.encrypt_text,[rsa_to_enc,pub_key_in,out3],[rsa_enc_mes,qr_enc_mes]).then(test_fn2,qr_enc_mes,mes_in)
|
546 |
+
rsa_dec_btn.click(app_og.decrypt_text,[mes_in,priv_key_in],rsa_dec_mes)
|
547 |
+
|
548 |
check_trans.click(deep_trans,None,[block_text,out_box_bool])
|
549 |
|
550 |
reset_sender.click(res_send,send,block_text)
|