Update app.py
Browse files
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.
|
| 63 |
examples=None,
|
| 64 |
)
|
| 65 |
|
| 66 |
# Add the decrypt functionality to the app
|
| 67 |
app.add(
|
| 68 |
fn=decrypt,
|
| 69 |
-
inputs=[gr.
|
| 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 |
)
|