Omnibus commited on
Commit
4be2310
·
verified ·
1 Parent(s): 934254b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,6 +1,6 @@
1
  #import gradio as gr
2
  name="this name"
3
- def unicode_escape(s):
4
- return "".join(map(lambda c: rf"U+E{ord(c):04x}", s))
5
- #print(unicode_escape("Hello, World!\n"))
6
- print((u'U+E0064').encode('latin-1'))
 
1
  #import gradio as gr
2
  name="this name"
3
+ def convert_to_tag_chars(input_string):
4
+ return ''.join(chr(0xE0000 + ord(ch)) for ch in input_string)
5
+
6
+ print(convert_to_tag_chars(name))