Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -141,7 +141,14 @@ def decode_doc(passw,doc=None):
|
|
| 141 |
return dec_file
|
| 142 |
|
| 143 |
def decode_qr(im,passw):
|
| 144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
print(f'decoded QR::{decode_qr}')
|
| 146 |
key = create_key(passw)
|
| 147 |
fernet = Fernet(key)
|
|
|
|
| 141 |
return dec_file
|
| 142 |
|
| 143 |
def decode_qr(im,passw):
|
| 144 |
+
with open(f'{img}', "rb") as image_file:
|
| 145 |
+
bytes_i = base64.b64encode(image_file.read())
|
| 146 |
+
decode_qr = stegan.decode(bytes_i)
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
|
| 152 |
print(f'decoded QR::{decode_qr}')
|
| 153 |
key = create_key(passw)
|
| 154 |
fernet = Fernet(key)
|