Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -135,13 +135,11 @@ with gr.Blocks() as app:
|
|
135 |
pass_out = gr.Textbox(label="Enter Password")
|
136 |
|
137 |
dec_qr_im = gr.Image(type="filepath")
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
dec_qr_im_out =gr.Image(label="Decrytped Image")
|
143 |
dec_qr_btn = gr.Button("Decrypt")
|
144 |
gr.Column()
|
145 |
-
dec_qr_btn.click(decode_qr,[dec_qr_im,pass_out],[
|
146 |
en_btn.click(encrypt,[pass_in,send,rec,am],[enc_out,enc_qr_out,dec_qr_im])
|
147 |
app.launch()
|
|
|
135 |
pass_out = gr.Textbox(label="Enter Password")
|
136 |
|
137 |
dec_qr_im = gr.Image(type="filepath")
|
138 |
+
|
139 |
+
d_json = gr.JSON(label="Decrypted JSON")
|
140 |
+
|
|
|
|
|
141 |
dec_qr_btn = gr.Button("Decrypt")
|
142 |
gr.Column()
|
143 |
+
dec_qr_btn.click(decode_qr,[dec_qr_im,pass_out],[d_json])
|
144 |
en_btn.click(encrypt,[pass_in,send,rec,am],[enc_out,enc_qr_out,dec_qr_im])
|
145 |
app.launch()
|