Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
def hide_message(reg,sec):
|
3 |
-
out = reg +
|
4 |
return out
|
5 |
def decode_message(inp):
|
6 |
return ''.join(chr(ord(ch) - 0xE0000) if 0xE0000 <= ord(ch) <= 0x10FFFF else chr(ord(ch)) for ch in inp)
|
|
|
1 |
import gradio as gr
|
2 |
def hide_message(reg,sec):
|
3 |
+
out = reg + ''.join(chr(0xE0000 + ord(ch)) for ch in sec)
|
4 |
return out
|
5 |
def decode_message(inp):
|
6 |
return ''.join(chr(ord(ch) - 0xE0000) if 0xE0000 <= ord(ch) <= 0x10FFFF else chr(ord(ch)) for ch in inp)
|