Omnibus commited on
Commit
53a9a86
1 Parent(s): 1a59183

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
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
- with gr.Row():
139
- dec_qr_txt = gr.Textbox(label="Decrypted Message")
140
- d_json = gr.JSON(label="Decrypted JSON")
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],[dec_qr_im_out,dec_qr_txt,d_json])
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()