Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,16 @@
|
|
1 |
-
|
2 |
name="this name"
|
3 |
-
def convert_to_tag_chars(
|
4 |
-
return
|
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()
|