Omnibus commited on
Commit
7e44235
·
verified ·
1 Parent(s): 4be2310

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -4
app.py CHANGED
@@ -1,6 +1,16 @@
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))
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
  name="this name"
3
+ def convert_to_tag_chars(reg,sec):
4
+ return reg.join(chr(0xE0000 + ord(ch)) for ch in sec)
5
 
6
+ #print(convert_to_tag_chars(name))
7
+
8
+ with gr.Blocks() as app:
9
+ with gr.Row():
10
+ with gr.Column():
11
+ reg = gr.Textbox(label="Visible String")
12
+ sec = gr.Textbox(label="Secret Message")
13
+ btn=gr.Button()
14
+ outp=gr.Textbox(label="Output Message")
15
+ btn.click(hide_message,[reg,sec],outp)
16
+ app.launch()