Omnibus commited on
Commit
06bc063
1 Parent(s): 7bafa3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -1,16 +1,8 @@
1
  import gradio as gr
2
  def hide_message(reg,sec):
3
  out = reg + " " + ''.join(chr(0xE0000 + ord(ch)) for ch in sec)
4
- for ea in out:
5
-
6
- print(chr(ord([ea][0])-0xE0000))
7
- print(ord([ea][0]))
8
- str_ea=str([ea][4:])
9
- print(len(str_ea))
10
- print(str_ea.encode('utf-8'))
11
- if str_ea.startswith(r"\U000e"):
12
- new_ea = str_ea.split(r"\U000e")[1]
13
- print(new_ea)
14
  print (len(out))
15
  print (out)
16
  print([out])
 
1
  import gradio as gr
2
  def hide_message(reg,sec):
3
  out = reg + " " + ''.join(chr(0xE0000 + ord(ch)) for ch in sec)
4
+ #def reverse_e0000_encoding(input_str):
5
+ print(''.join(chr(ord(ch) - 0xE0000) if 0xE0000 <= ord(ch) <= 0x10FFFF else chr(ord(ch)) for ch in out))
 
 
 
 
 
 
 
 
6
  print (len(out))
7
  print (out)
8
  print([out])