Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -146,11 +146,13 @@ with gr.Blocks() as app:
|
|
146 |
rec_list,rec_drop = chatchain.update_rec_list()
|
147 |
#rec_drop = gr.Dropdown.update(label="Recipient", choices=[f for f in rec_list])
|
148 |
return response,message,rec_drop
|
149 |
-
|
|
|
|
|
150 |
send_mes_btn.click(send_message,[sender,rec,send_mes],[block_text])
|
151 |
|
152 |
|
153 |
-
input_key.change(crypt.address,input_key,sender).then(
|
154 |
pass_btn.click(checkp,pass_box,[invalid,valida])
|
155 |
|
156 |
gen_wal_btn.click(crypt.generate_keys,None,[out2,out1,img3,out3,img1,img2]).then(create_new_chain,[out3,img1],[response_json,block_text,rec]).then(test_fn,[img1],[input_key])
|
|
|
146 |
rec_list,rec_drop = chatchain.update_rec_list()
|
147 |
#rec_drop = gr.Dropdown.update(label="Recipient", choices=[f for f in rec_list])
|
148 |
return response,message,rec_drop
|
149 |
+
def rec_list_up(inp):
|
150 |
+
_,out = chatchain.update_rec_list(inp)
|
151 |
+
return (out)
|
152 |
send_mes_btn.click(send_message,[sender,rec,send_mes],[block_text])
|
153 |
|
154 |
|
155 |
+
input_key.change(crypt.address,input_key,sender).then(rec_list_up,in_chain,rec)
|
156 |
pass_btn.click(checkp,pass_box,[invalid,valida])
|
157 |
|
158 |
gen_wal_btn.click(crypt.generate_keys,None,[out2,out1,img3,out3,img1,img2]).then(create_new_chain,[out3,img1],[response_json,block_text,rec]).then(test_fn,[img1],[input_key])
|