Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -141,7 +141,7 @@ def decode_doc(passw,doc=None):
|
|
| 141 |
return dec_file
|
| 142 |
|
| 143 |
def decode_qr(im,passw):
|
| 144 |
-
with open(f'{
|
| 145 |
bytes_i = base64.b64encode(image_file.read())
|
| 146 |
decode_qr = stegan.decode(bytes_i)
|
| 147 |
|
|
|
|
| 141 |
return dec_file
|
| 142 |
|
| 143 |
def decode_qr(im,passw):
|
| 144 |
+
with open(f'{im}', "rb") as image_file:
|
| 145 |
bytes_i = base64.b64encode(image_file.read())
|
| 146 |
decode_qr = stegan.decode(bytes_i)
|
| 147 |
|