Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,6 +48,8 @@ def encrypt(passw=None,mes=None,img=None,doc=None):
|
|
| 48 |
enc_mes = f'{im_bytes}+bbb+'
|
| 49 |
|
| 50 |
if doc != None:
|
|
|
|
|
|
|
| 51 |
#bytes_d = doc.encode()
|
| 52 |
|
| 53 |
#doc = Path(doc)
|
|
@@ -114,7 +116,7 @@ with gr.Blocks() as app:
|
|
| 114 |
mes = gr.Textbox(label = "Message")
|
| 115 |
with gr.Row():
|
| 116 |
im = gr.Image(type="filepath")
|
| 117 |
-
doc=gr.File(
|
| 118 |
en_btn = gr.Button("Encrypt")
|
| 119 |
enc_out = gr.Textbox(label="Encrypted Bytes")
|
| 120 |
enc_doc_out=gr.File()
|
|
|
|
| 48 |
enc_mes = f'{im_bytes}+bbb+'
|
| 49 |
|
| 50 |
if doc != None:
|
| 51 |
+
print(doc.name)
|
| 52 |
+
print(doc.data)
|
| 53 |
#bytes_d = doc.encode()
|
| 54 |
|
| 55 |
#doc = Path(doc)
|
|
|
|
| 116 |
mes = gr.Textbox(label = "Message")
|
| 117 |
with gr.Row():
|
| 118 |
im = gr.Image(type="filepath")
|
| 119 |
+
doc=gr.File()
|
| 120 |
en_btn = gr.Button("Encrypt")
|
| 121 |
enc_out = gr.Textbox(label="Encrypted Bytes")
|
| 122 |
enc_doc_out=gr.File()
|