Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from cryptosteganography import CryptoSteganography
|
3 |
+
|
4 |
+
def decode(image, password):
|
5 |
+
crypto_steganography = CryptoSteganography(password)
|
6 |
+
secret_message = crypto_steganography.retrieve(image)
|
7 |
+
return secret_message
|
8 |
+
|
9 |
+
demo = gr.Interface(decode, ["image", "text"], "text")
|
10 |
+
demo.launch()
|