Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,12 @@ import qr
|
|
| 10 |
import stegan
|
| 11 |
import json
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
def trans_block(sender,recipient,amount):
|
| 14 |
transaction = [{
|
| 15 |
'sender': sender,
|
|
@@ -218,7 +224,10 @@ with gr.Blocks() as app:
|
|
| 218 |
url_btn = gr.Button("Get URL")
|
| 219 |
text_input = gr.Text(label="Input",visible=False)
|
| 220 |
text_output = gr.Text(label="Output",visible=False)
|
|
|
|
|
|
|
| 221 |
gr.Column()
|
|
|
|
| 222 |
dec_qr_btn.click(decode_qr,[dec_qr_im,pass_out],[dec_qr_im_out,dec_qr_txt,d_json])
|
| 223 |
en_btn.click(encrypt,[pass_in,send,rec,am],[enc_out,enc_qr_out,dec_qr_im])
|
| 224 |
url_btn.click(fn=predict, inputs=[text_input,url_params],outputs=[text_output,url_params], _js=get_window_url_params)
|
|
|
|
| 10 |
import stegan
|
| 11 |
import json
|
| 12 |
|
| 13 |
+
eth_wal = gr.Interface.load("spaces/Omnibus/decentral-test")
|
| 14 |
+
|
| 15 |
+
def eth_create():
|
| 16 |
+
out = eth_wal.eth_wal()
|
| 17 |
+
print(out)
|
| 18 |
+
|
| 19 |
def trans_block(sender,recipient,amount):
|
| 20 |
transaction = [{
|
| 21 |
'sender': sender,
|
|
|
|
| 224 |
url_btn = gr.Button("Get URL")
|
| 225 |
text_input = gr.Text(label="Input",visible=False)
|
| 226 |
text_output = gr.Text(label="Output",visible=False)
|
| 227 |
+
with gr.Tab("Gen Wal"):
|
| 228 |
+
gen_wal_btn=gr.Button()
|
| 229 |
gr.Column()
|
| 230 |
+
gen_wal_btn.click(eth_create,None,None)
|
| 231 |
dec_qr_btn.click(decode_qr,[dec_qr_im,pass_out],[dec_qr_im_out,dec_qr_txt,d_json])
|
| 232 |
en_btn.click(encrypt,[pass_in,send,rec,am],[enc_out,enc_qr_out,dec_qr_im])
|
| 233 |
url_btn.click(fn=predict, inputs=[text_input,url_params],outputs=[text_output,url_params], _js=get_window_url_params)
|