Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -193,26 +193,15 @@ with gr.Blocks() as app:
|
|
193 |
|
194 |
with gr.Tab("Decrypt"):
|
195 |
pass_out = gr.Textbox(label="Enter Password")
|
196 |
-
with gr.Tab("String"):
|
197 |
-
enc_in = gr.Textbox(label="Encrypted Bytes")
|
198 |
-
d_btn = gr.Button("Decrypt")
|
199 |
-
d_txt = gr.Textbox(label="Decrypted Message")
|
200 |
-
d_im =gr.Image(label="Decrytped Image")
|
201 |
-
with gr.Tab("File"):
|
202 |
-
dec_doc_in = gr.File()
|
203 |
-
dec_doc_btn = gr.Button("Decrypt")
|
204 |
-
dec_doc_out=gr.File()
|
205 |
-
with gr.Tab("QR"):
|
206 |
-
dec_qr_im = gr.Image(type="filepath")
|
207 |
-
with gr.Row():
|
208 |
-
dec_qr_txt = gr.Textbox(label="Decrypted Message")
|
209 |
-
d_json = gr.Textbox(label="Decrypted JSON")
|
210 |
|
211 |
-
|
212 |
-
|
|
|
|
|
|
|
|
|
|
|
213 |
|
214 |
dec_qr_btn.click(decode_qr,[dec_qr_im,pass_out],[dec_qr_im_out,dec_qr_txt,d_json])
|
215 |
-
dec_doc_btn.click(decode_doc,[pass_out,dec_doc_in],dec_doc_out)
|
216 |
en_btn.click(encrypt,[pass_in,mes,im,doc,send,rec,am],[enc_out,enc_qr_out,dec_qr_im])
|
217 |
-
d_btn.click(decrypt,[pass_out,enc_in],[d_im,d_txt,d_json])
|
218 |
app.launch()
|
|
|
193 |
|
194 |
with gr.Tab("Decrypt"):
|
195 |
pass_out = gr.Textbox(label="Enter Password")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
|
197 |
+
dec_qr_im = gr.Image(type="filepath")
|
198 |
+
with gr.Row():
|
199 |
+
dec_qr_txt = gr.Textbox(label="Decrypted Message")
|
200 |
+
d_json = gr.Textbox(label="Decrypted JSON")
|
201 |
+
|
202 |
+
dec_qr_im_out =gr.Image(label="Decrytped Image")
|
203 |
+
dec_qr_btn = gr.Button("Decrypt")
|
204 |
|
205 |
dec_qr_btn.click(decode_qr,[dec_qr_im,pass_out],[dec_qr_im_out,dec_qr_txt,d_json])
|
|
|
206 |
en_btn.click(encrypt,[pass_in,mes,im,doc,send,rec,am],[enc_out,enc_qr_out,dec_qr_im])
|
|
|
207 |
app.launch()
|