YassineYousfi
commited on
Commit
·
9649f08
1
Parent(s):
600de08
add example
Browse files- app.py +3 -2
- tmp/8825.png +0 -0
app.py
CHANGED
@@ -47,8 +47,9 @@ def HILL(input_image, operation, message, key):
|
|
47 |
return 'tmp/stego.png'
|
48 |
|
49 |
iface = gr.Interface(HILL,
|
50 |
-
[
|
51 |
-
|
|
|
52 |
title=title,
|
53 |
description=description)
|
54 |
iface.launch()
|
|
|
47 |
return 'tmp/stego.png'
|
48 |
|
49 |
iface = gr.Interface(HILL,
|
50 |
+
['file', gr.inputs.Radio(['encode', 'decode']), 'text', 'text'],
|
51 |
+
'file',
|
52 |
+
examples=[['tmp/8825.png', 'encode', 'This is a secret message', 'secret-key']],
|
53 |
title=title,
|
54 |
description=description)
|
55 |
iface.launch()
|
tmp/8825.png
ADDED