Omnibus commited on
Commit
799aaaf
·
verified ·
1 Parent(s): 90742a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,3 +1,5 @@
1
  #import gradio as gr
2
  name="this name"
3
- print (unicode(name,'latin-1'))
 
 
 
1
  #import gradio as gr
2
  name="this name"
3
+ def unicode_escape(s):
4
+ return "".join(map(lambda c: rf"\u{ord(c):04x}", s))
5
+ print(unicode_escape("Hello, World!\n"))