Omnibus's picture
Update app.py
7e44235 verified
raw
history blame
466 Bytes
import gradio as gr
name="this name"
def convert_to_tag_chars(reg,sec):
return reg.join(chr(0xE0000 + ord(ch)) for ch in sec)
#print(convert_to_tag_chars(name))
with gr.Blocks() as app:
with gr.Row():
with gr.Column():
reg = gr.Textbox(label="Visible String")
sec = gr.Textbox(label="Secret Message")
btn=gr.Button()
outp=gr.Textbox(label="Output Message")
btn.click(hide_message,[reg,sec],outp)
app.launch()