lyimo commited on
Commit
c60a4c5
·
verified ·
1 Parent(s): f1cb997

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,14 +59,14 @@ def decrypt(encrypted_data, key, password):
59
  app = gr.Interface(
60
  fn=encrypt,
61
  inputs=[image_input, password_input, encrypt_button],
62
- outputs=[output_image, gr.outputs.Textbox(label="Encryption Key")],
63
  examples=None,
64
  )
65
 
66
  # Add the decrypt functionality to the app
67
  app.add(
68
  fn=decrypt,
69
- inputs=[gr.inputs.Image(label="Encrypted Image"), gr.inputs.Textbox(label="Encryption Key"), password_input, decrypt_button],
70
  outputs=output_image,
71
  examples=None,
72
  )
 
59
  app = gr.Interface(
60
  fn=encrypt,
61
  inputs=[image_input, password_input, encrypt_button],
62
+ outputs=[output_image, gr.Textbox(label="Encryption Key")],
63
  examples=None,
64
  )
65
 
66
  # Add the decrypt functionality to the app
67
  app.add(
68
  fn=decrypt,
69
+ inputs=[gr.Image(label="Encrypted Image"), gr.Textbox(label="Encryption Key"), password_input, decrypt_button],
70
  outputs=output_image,
71
  examples=None,
72
  )